/* GLOBAL STYLES */
body {
    font-family: 'DM Sans', sans-serif;
    background-color: #f4f6f9;
}

/* LOGIN STYLES */
body.login-page {
    background: url('login-bg.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: white;
}

.login-title {
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* SIDEBAR & LAYOUT */
#sidebar {
    min-width: 250px;
    max-width: 250px;
    background-color: #343a40;
    color: white;
    transition: all 0.3s;
}

@media (min-width: 768px) {
    #sidebar {
        min-height: 100vh;
        position: relative;
    }
}

#sidebar .sidebar-header {
    padding: 20px;
    background: #2b3035;
}

#sidebar ul.components {
    padding: 20px 0;
    border-bottom: 1px solid #47748b;
}

#sidebar ul p {
    color: #fff;
    padding: 10px;
}

#sidebar ul li a {
    padding: 6px 20px;
    font-size: 0.9em;
    display: block;
    color: #d1d5db;
    text-decoration: none;
}

#sidebar ul li a:hover,
#sidebar ul li.active>a {
    color: #fff;
    background: #0d6efd;
}

#content {
    width: 100%;
    padding: 20px;
    min-height: 100vh;
    transition: all 0.3s;
}

.customer-menu {
    background: #2b3035;
    padding-left: 10px;
}

/* .customer-menu li a {
    font-size: 0.95em !important;
    padding: 8px 20px !important;
} */

/* POST CARD LAYOUT (modules/plans.php) */
.grid-item {
    width: calc(33.333% - 4px);
    margin: 2px;
    background-color: #fff;
    border: 1px solid #efefef;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

@media (max-width: 992px) {
    .grid-item {
        width: calc(50% - 4px);
    }
}

@media (max-width: 576px) {
    .grid-item {
        width: calc(100% - 4px);
    }
}

/* CAROUSEL CONTROLS WORKAROUND */
/* Bootstrap carousel oklarının şeffaf 15% lik kısmı video kontrollerini engellemesin diye */
.grid-item .carousel-control-prev,
.grid-item .carousel-control-next {
    pointer-events: none;
}
.grid-item .carousel-control-prev-icon,
.grid-item .carousel-control-next-icon {
    pointer-events: auto;
    background-color: rgba(0,0,0,0.5); /* Okların daha net görünmesi için hafif arkaplan */
    border-radius: 50%;
    padding: 1.5rem; /* Tıklanabilir alanı biraz büyütmek için */
    background-size: 50%;
}
.grid-item .media-area {
    position: relative;
    width: 100%;
    padding-bottom: 133.333%; /* 3:4 Aspect Ratio */
    background-color: #efefef;
}
.grid-item .badge-platforms {
    position: absolute;
    top: 5px;
    left: 5px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 10;
}
.grid-item .badge-platforms .badge {
    font-size: 0.6rem;
    padding: 3px 5px;
    opacity: 0.9;
}
.grid-item .media-area .content {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}
.grid-item .text-area {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.grid-item .text-area .desc {
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 10px;
    max-height: 100px;
    overflow-y: auto;
    white-space: pre-wrap;
}
/* Custom Scrollbar for desc */
.grid-item .text-area .desc::-webkit-scrollbar {
    width: 4px;
}
.grid-item .text-area .desc::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
.grid-item .text-area .actions {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding-top: 10px;
}
.grid-item .badge-status {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.7rem;
    padding: 3px 6px;
    z-index: 10;
}
.grid-item .badge-date {
    position: absolute;
    bottom: 5px;
    right: 5px;
    font-size: 0.7rem;
    padding: 3px 6px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    font-weight: 500;
    border-radius: 4px;
    z-index: 10;
}
.grid-item .badge-type {
    position: absolute;
    bottom: 5px;
    left: 5px;
    font-size: 0.7rem;
    padding: 3px 6px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    font-weight: 500;
    border-radius: 4px;
    z-index: 10;
}

/* Edit Modal Media List */
.existing-media-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 10px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    margin-bottom: 5px;
    cursor: move;
}
.existing-media-item img {
    height: 40px;
    width: 40px;
    object-fit: cover;
    border-radius: 4px;
}

/* Status Colors */
.status-working_on_it {
    background-color: #6c757d;
    color: white;
}

.status-prepared {
    background-color: #a29bfe;
    color: white;
}

.status-feedback {
    background-color: #d63031;
    color: white;
}

.status-approved {
    background-color: #55efc4;
    color: black;
}

.status-scheduled {
    background-color: #fdcb6e;
    color: black;
}

.status-published {
    background-color: #00b894;
    color: white;
}

.status-waiting {
    background-color: #fd79a8;
    color: white;
}

.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}