/* style.css - external stylesheet for Swahili movie dashboard */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.jame {
    background-color: #f4f6fa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== LAYOUT HEADER (dashboard navbar) ===== */
.dashboard-header {
    background: white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.02), 0 2px 6px rgba(0,20,30,0.05);
    padding: 0.8rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 2px solid #eef2f6;
    flex-wrap: wrap;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.logo-icon {
    background: #1e2b3c;
    color: #f5c84e;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.logo-text {
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    color: #0f1a2c;
    white-space: nowrap;
}

.logo-text span {
    color: #f5b342;
    font-weight: 400;
    font-size: 1rem;
    background: #fef6e6;
    padding: 0.2rem 0.6rem;
    border-radius: 30px;
    margin-left: 8px;
    white-space: nowrap;
}

/* ===== SEARCH BAR ===== */






/* header right: button group */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* ----- DROP DOWN (Movies type) ----- */
.dropdown {
    position: relative;
    display: inline-block;
}
/* ===== SEARCH BAR - FIXED ===== */

/* ===== SEARCH BAR - FIXED ALIGNMENT ===== */
.search-form {
    display: flex;
    align-items: center; /* This ensures both children align vertically */
    flex: 1;
    max-width: 350px;
    min-width: 180px;
    height: 38px; /* Fixed height for entire search bar */
    margin: 0; /* Remove any default margins */
}

.search-form input {
    flex: 1;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #dde2e8;
    border-right: none;
    border-radius: 30px 0 0 30px;
    outline: none;
    font-size: 14px;
    background: white;
    margin: 0; /* Remove default margins */
    box-sizing: border-box; /* Ensure padding doesn't add to height */
}

.search-form button {
    height: 38px;
    width: 38px;
    padding: 0;
    border: 1px solid #dde2e8;
    border-left: none;
    border-radius: 0 30px 30px 0;
    background: #f8fafd;
    color: #1f2a41;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0; /* Remove default margins */
    box-sizing: border-box; /* Ensure padding doesn't add to height */
}

.search-form button i {
    font-size: 14px;
    line-height: 1; /* Prevent icon from affecting height */
}

.search-form button:hover {
    background: #f5b342;
    color: white;
    border-color: #f5b342;
}


.dropbtn {
    background-color: #ffffff;
    border: 1px solid #dde2e8;
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #1f2a41;
    display: flex;
    align-items: center;
   
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: all 0.2s ease;
  
}

.dropbtn i {
    color: #f5b342;
    font-size: 0.95rem;
}

.dropdown-content {
    display: none;
    position: absolute;
}
.dropdown-content.show {
    display: block;
}

.dropdown-content {
    display: none;
    position: absolute;
  
    left: 0;
    background-color: #ffffff;
    min-width: 200px;
    border-radius: 20px;
    box-shadow: 0 20px 35px -8px rgba(0,20,40,0.25), 0 5px 12px rgba(0,0,0,0.1);
    z-index: 100;
    padding: 0.6rem 0;
    border: 1px solid rgba(255,215,120,0.3);
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: #1e293b;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.15s;
}

.dropdown-content a i {
    width: 20px;
    color: #e58e26;
    font-size: 1rem;
}

.dropdown-content a:hover {
    background-color: #fff5e0;
    color: #b85e00;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* small divider inside dropdown */
.dropdown-divider {
    height: 1px;
    background: #eee5d5;
    margin: 0.5rem 0;
}

/* ----- LOGIN BUTTON ----- */
.btn-login {
    background: transparent;
    border: 1px solid #cbd5e1;
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #1f2a41;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-login i {
    color: #3b6e9c;
}

.btn-login:hover {
    background-color: #eef3f9;
    border-color: #9bb0c9;
}

/* ----- ORDER MOVIE BUTTON ----- */
.btn-order {
    background: #1e2b3c;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    box-shadow: 0 6px 12px rgba(0,40,70,0.15);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-order i {
    color: #f5c84e;
}

.btn-order:hover {
    background: #25384f;
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(0,40,70,0.2);
}

/* ----- SUBSCRIPTION BADGE ----- */
.sub-badge {
    background: #fef1d6;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #9b5e1c;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    border: 1px solid #ffe6b3;
    text-decoration: none;
}

.sub-badge i {
    color: #e6a81e;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .dashboard-header {
        padding: 0.8rem 1.5rem;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 850px) {
    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .logo-area {
        justify-content: center;
        width: 100%;
    }
    
    .search-form {
        max-width: 100%;
        width: 100%;
    }
    
    .header-actions {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 550px) {
    .dashboard-header {
        padding: 0.8rem 1rem;
    }
    
    .header-actions {
        gap: 0.5rem;
    }
    
    .dropbtn, .btn-login, .btn-order {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .sub-badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .logo-text span {
        font-size: 0.8rem;
    }
}

/* Rest of your existing styles remain the same */
.movie-card{
    display:flex;
    border:1px solid #ccc;
    margin:15px;
    padding:10px;
    width:600px;
}

.movie-image img{
    width:100px;
    height:100px;
    object-fit: cover;
}

.movie-info{
    margin-left:20px;
}

.free{
    color:green;
    font-weight:bold;
}

.paid{
    color:red;
    font-weight:bold;
}

body{
    background:#f5f7fb;
    font-family:Arial, Helvetica, sans-serif;
}

/* HEADER */
.page-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
}

.page-header h1{
    font-size:26px;
    font-weight:700;
}

.page-header p{
    color:#666;
    margin:0;
}

/* ADD BUTTON */
.add-series-btn{
    background:#0d6efd;
    color:white;
    padding:8px 16px;
    border-radius:8px;
    text-decoration:none;
    font-size:14px;
}

.add-series-btn:hover{
    background:#0b5ed7;
    color:white;
}

/* GRID */
.series-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
    gap:20px;
}

/* CARD */
.movie-card{
    background:white;
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 3px 10px rgba(0,0,0,0.08);
    transition:0.2s;
}

.movie-card:hover{
    transform:translateY(-4px);
}

/* IMAGE */
.movie-poster img{
    width:100%;
    height:260px;
    object-fit:cover;
}

/* INFO */
.movie-info{
    padding:12px;
}

.movie-title{
    font-size:15px;
    font-weight:600;
}

.movie-title a{
    text-decoration:none;
    color:#111;
}

/* META */
.movie-meta{
    font-size:12px;
    color:#777;
    display:flex;
    justify-content:space-between;
    margin-top:5px;
}

/* BADGES */
.badge-free{
    background:#28a745;
    color:white;
    padding:2px 6px;
    border-radius:5px;
    font-size:11px;
}

.badge-premium{
    background:#dc3545;
    color:white;
    padding:2px 6px;
    border-radius:5px;
    font-size:11px;
}

/* BUTTON */
.btn-small{
    margin-top:8px;
    font-size:12px;
    padding:5px 10px;
}

/* SMALL GRID */
.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

/* SMALL CARD */
.movie-card-small {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.2s;
}

.movie-card-small:hover {
    transform: translateY(-3px);
}

/* THUMBNAIL */
.movie-thumb img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

/* INFO */
.movie-info-small {
    padding: 6px 8px;
}

.movie-title-small {
    font-size: 14px;
    font-weight: 600;
    margin: 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* META */
.movie-meta-small {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #555;
    align-items: center;
}

.badge-free-small {
    background: #28a745;
    color: white;
    padding: 1px 5px;
    border-radius: 4px;
}

.badge-premium-small {
    background: #dc3545;
    color: white;
    padding: 1px 5px;
    border-radius: 4px;
}

/* PAGE HEADER ADJUSTMENT */
.ppage-header h1 {
    font-size: 22px;
}

.page-header p {
    font-size: 13px;
}

.add-series-btn {
    padding: 6px 12px;
    font-size: 13px;
}
.vaga {
     padding: 6px 12px;
    font-size: 13px;
}

.bad {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdef5 100%);
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

h2 {
    color: #0d47a1;
    text-align: center;
    margin-bottom: 25px;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

form {
    background: white;
    padding: 45px 50px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(25, 118, 210, 0.12), 0 6px 12px rgba(25, 118, 210, 0.08);
    width: 100%;
    max-width: 380px;
    transition: transform 0.3s ease;
}

.aaa {
    background: #ffffff;
    color: white; 
    padding: 10px 11px;
    border-radius: 8px;
    text-decoration: none;  
}

.men{
    background: #0d47a1;
    color: white;
    padding: 10px 11px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    margin-top: 0px;
}

form:hover {
    transform: translateY(-5px);
}

input {
    width: 100%;
    padding: 14px 18px;
    margin: 8px 0;
    border: 2px solid #e3f2fd;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    background-color: #f5f9ff;
}

input:focus {
    border-color: #1976d2;
    background-color: white;
    outline: none;
    box-shadow: 0 0 0 4px rgba(25, 118, 210, 0.1);
}

input::placeholder {
    color: #64b5f6;
    font-weight: 400;
    font-size: 14px;
}

button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #1976d2, #0d47a1);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 25px;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.4);
}

button:hover {
    background: linear-gradient(135deg, #0d47a1, #1976d2);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.5);
}

button:active {
    transform: scale(0.98);
}

.episode-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.episode-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.episode-link {
    color: rgb(52, 17, 227);
    text-decoration: none;
    font-weight: 500;
}

.episode-link:hover {
    color: #ffd700;
}

.episode-link i {
    color: #ffd700;
    margin-right: 8px;
}

.episode-actions {
    display: flex;
    gap: 8px;
}

.btn-outline-danger {
    color: #ff6b6b;
    border-color: #ff6b6b;
}

.btn-outline-danger:hover {
    background-color: #ff6b6b;
    color: white;
}


    .custom-movies-btn {
        background-color: #e50914;
        color: white;
        border: none;
        padding: 10px 20px;
        font-size: 16px;
        cursor: pointer;
        margin-bottom: 15px;
        border-radius: 5px;
    }

    .custom-add-series-btn {
        background-color: #3498db;
        color: white;
        padding: 8px 15px;
        border-radius: 5px;
        text-decoration: none;
        font-size: 14px;
        display: inline-block;
    }

    .custom-delete-btn {
        background-color: #c0392b;
        color: white;
        border: none;
        padding: 6px 12px;
        font-size: 14px;
        cursor: pointer;
        border-radius: 4px;
        margin-right: 5px;
    }

    .custom-add-episodes-btn {
        background-color: #27ae60;
        color: white;
        padding: 6px 12px;
        font-size: 14px;
        border-radius: 4px;
        text-decoration: none;
        display: inline-block;
    }

    .custom-add-episodes-btn i {
        margin-right: 5px;
    }
}






/* 1. The Grid Container */
.sr-series-container-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 160px); /* Strictly 160px wide */
    gap: 15px;
    padding: 20px;
}

/* 2. The Card - Rigid and Compact */
.sr-unique-card {
    background: #111 !important; /* Forces dark background */
    border-radius: 8px;
    border: 1px solid #333;
    overflow: hidden;
    width: 160px; /* Locked width */
    display: flex;
    flex-direction: column;
}

/* 3. The Image - Small and Fixed */
.sr-card-poster-wrapper {
    width: 100%;
    height: 140px; /* Locked height */
    overflow: hidden;
}

.sr-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 4. The Content Area - NO WHITE BACKGROUND */
.sr-card-body-content {
    padding: 8px;
    background: transparent !important; 
    color: white;
}

.sr-item-title-text {
    font-size: 14px;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sr-meta-data-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    margin-bottom: 8px;
}

/* 5. The Buttons - Side-by-Side and Slim */
.sr-action-buttons-group {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Delete smaller, Add larger */
    gap: 4px;
    padding: 0 8px 8px 8px; /* Padding at bottom of card */
}

.sr-btn-action {
    padding: 6px 0;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    border: none;
    display: block;
    width: 100%;
}

.sr-btn-danger { background: #ff4d4d; color: white; }
.sr-btn-primary { background: #007bff; color: white; }

/* Ensure the delete form doesn't take up space */
.sr-inline-form { margin: 0; padding: 0; }
