* { margin: 0; padding: 0; box-sizing: border-box; }

/* Force scrollbar to always be visible to prevent layout shift */
html {
    overflow-y: scroll;
}

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background: #1a1a1a; 
    color: #fff;
    line-height: 1.6;
}

/* Add subtle gradient overlay to body */
/* Add subtle gradient overlay to body */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(26, 26, 26, 1) 0%, 
        rgba(35, 35, 35, 1) 50%, 
        rgba(26, 26, 26, 1) 100%);
    pointer-events: none;
    z-index: -1;
}



/* Navbar */
.navbar {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(45, 45, 45, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(229, 9, 20, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.navbar h1 {
    color: #e50914;
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    background: #e50914;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Page Header */
.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: #ccc;
    font-size: 1rem;
}

/* Dashboard Content */
.dashboard-content {
    background: rgba(45, 45, 45, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 2rem;
}

.alert-success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid #28a745;
    color: #28a745;
}

.alert-error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: #dc3545;
}

/* Form Styles */
.settings-form {
    background: rgba(45, 45, 45, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #fff;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: rgba(229, 9, 20, 0.5);
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.2);
}

.form-description {
    font-size: 0.875rem;
    color: #999;
    margin-top: 0.25rem;
}

.btn {
    background: #e50914;
    color: #fff;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    min-width: 120px;
}

.btn:hover {
    background: #b8070f;
}

.btn-container {
    text-align: right;
    margin-top: 2rem;
}

/* Login Page Styles */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: rgba(45, 45, 45, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    color: #e50914;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #ccc;
}


.link-remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 38px; /* Même hauteur que les inputs */
    margin-bottom: 1.5rem; /* Même margin-bottom que .form-group */
    border-radius: 6px;
    background: #e50914;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.link-remove-btn:hover {
    background: #b8070f;
    transform: scale(1.05);
}


/* Movies Controls */
.movies-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
    background: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
}

.search-form-inline {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.search-input-inline {
    padding: 0.5rem;
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: #fff;
    min-width: 200px;
}

.btn-search, .btn-clear {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}
.btn-main {
background: #e50914;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    text-decoration: none;
    text-transform: uppercase;
}
.btn-main:hover {
    background: #b2070f;
}

.btn-clear {
    background: #6c757d;
}

.per-page-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.per-page-select {
    padding: 0.5rem;
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: #fff;
}

/* Movies Table */
.movies-table-container {
    background: rgba(45, 45, 45, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    margin-bottom: 2rem;
}

.movies-table {
    display: flex;
    flex-direction: column;
}

.table-header {
    display: grid;
    grid-template-columns: 10px 0.2fr 1fr 1.5fr 1fr 1.5fr;
    gap: 1rem;
    background: rgba(26, 26, 26, 0.8);
    font-weight: 600;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table-row {
    display: grid;
    grid-template-columns: 10px 0.2fr 1fr 1.5fr 1fr 1.5fr;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
    background: rgba(26, 26, 26, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    min-height: 90px;
    align-items: center;
}

.table-row:hover {
    background: rgba(51, 51, 51, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.table-row:last-child {
    border-bottom: none;
}


.ids-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.id-badge {
    background: #444;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
}

.links-count {
    background: #e50914;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-edit {
    background: #28a745;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.btn-delete {
    background: #e50914;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.btn-delete :hover {
    background: #b8070f;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}
.no-results {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    background: rgba(45, 45, 45, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.no-results p {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.no-results .btn {
    display: inline-block;
    margin-top: 0.5rem;
    text-decoration: none;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

.pagination-links {
    display: flex;
    gap: 0.5rem;
}

.pagination-link {
    padding: 0.5rem 0.75rem;
    background: rgba(45, 45, 45, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

.pagination-link:hover {
    background: rgba(68, 68, 68, 0.8);
}

.pagination-link.active {
    background: #e50914;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background: rgba(45, 45, 45, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 1200px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1rem 2rem;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 15px 15px 0 0;
}

.modal-header h2 {
    color: #e50914;
    margin: 0;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #fff;
}

.modal-body {
    padding: 2rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bulk Actions */
.bulk-actions {
    background: rgba(45, 45, 45, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bulk-actions #selectedCount {
    color: #ccc;
    font-size: 0.9rem;
}

/* Checkbox styles */
.movie-checkbox, #selectAll {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Toast Styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
}

.toast {
    display: flex;
    align-items: center;
    background: rgba(45, 45, 45, 0.9) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
    color: #fff !important;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 16px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 4px solid #007bff;
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    border-left-color: #28a745;
}

.toast-error {
    border-left-color: #dc3545;
}

.toast-info {
    border-left-color: #17a2b8;
}

.toast-icon {
    font-size: 18px;
    font-weight: bold;
    margin-right: 12px;
    min-width: 20px;
}

.toast-success .toast-icon {
    color: #28a745;
}

.toast-error .toast-icon {
    color: #dc3545;
}

.toast-info .toast-icon {
    color: #17a2b8;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    color: #fff !important;
}

.toast-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #ccc !important;
    margin-left: 12px;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    color: #fff !important;
}

/* Dropdown Styles */
/* Dropdown Styles */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.dropdown-toggle:hover .dropdown-arrow,
.dropdown-menu.show + .dropdown-toggle .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(45, 45, 45, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    min-width: 180px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s ease;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #e50914;
    color: #fff;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .nav-dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        margin-top: 0.5rem;
    }

    .dropdown-menu.show {
        display: block;
        transform: none;
    }

    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }
}


/* Input with button styles */
.input-with-button {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-with-button .form-input {
    flex: 1;
}

.btn-fetch {
    background: #28a745 !important;
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.btn-fetch:hover {
    background: #218838 !important;
}

.btn-fetch:disabled {
    background: #6c757d !important;
    cursor: not-allowed;
}

/* Movie info styles */
.movie-info-cell {
    min-width: 200px;
}

.movie-info {
    display: flex;
    align-items: center;
    gap: 12px;
            width: 100%;
        justify-content: flex-start;
            transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.movie-poster {
    flex-shrink: 0;
    width: 50px;
    height: 75px;
    border-radius: 4px;
    overflow: hidden;
    background: #f0f0f0;
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-details {
    flex: 1;
    min-width: 0;
}

.movie-title {
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1;
}

/* Scrollbar styling for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
        margin: 1rem auto;
    }
    
    .navbar {
        padding: 1rem;
        flex-wrap: wrap;
    }
    
    .navbar h1 {
        font-size: 1.3rem;
    }
    
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .settings-form {
        padding: 1.5rem;
    }
    
    .btn-container {
        text-align: center;
    }
    
    .btn {
        width: 100%;
        max-width: 200px;
    }
    
    .login-container {
        padding: 2rem;
        margin: 1rem;
    }
    
    .link-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1rem;
        background: rgba(26, 26, 26, 0.6);
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .link-remove-btn {
        width: 100%;
        margin-top: 0.5rem;
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .form-input {
        font-size: 16px;
    }
    
    .movies-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-form-inline {
        flex-direction: column;
    }
    
    .search-input-inline {
        min-width: auto;
        width: 100%;
    }
    
    .table-header {
        display: none;
    }
    
    .table-row {
        display: block;
        position: relative;
        margin-bottom: 15px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        background: rgba(26, 26, 26, 0.6);
        min-height: auto;
    }
    
    .table-cell {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        min-height: auto;
            align-items: center;
    min-height: 50px;
        transform: translateZ(0);
    }


    .table-cell:last-child {
        border-bottom: none;
    }
    
    .table-cell::before {
        content: attr(data-label) ": ";
        font-weight: 600;
    }
    
    .table-cell[data-label="Select"]::before,
    .table-cell[data-label="Movie"]::before,
    .table-cell[data-label="Actions"]::before {
        display: none !important;
    }
    
    .movie-info-cell {
        min-width: auto;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 15px 10px !important;
    }
    
    
    .movie-poster {
        width: 45px;
        height: 67px;
        flex-shrink: 0;
    }
    
    .movie-details {
        flex: 1;
        min-width: 0;
    }
    
    .table-cell[data-label="Actions"] {
        padding: 10px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 10px;
    }
    
    .action-buttons {
        display: flex;
        gap: 8px;
        width: 100%;
        justify-content: center;
        flex-direction: column;
    }
    
    .action-buttons .btn {
        flex: 1;
        padding: 8px 12px;
        font-size: 13px;
        text-align: center;
    }
    
    .table-cell[data-label="Select"] {
        position: absolute;
        top: 10px;
        right: 10px;
        min-height: auto;
        padding: 5px;
        background: rgba(0,0,0,0.7);
        border-radius: 4px;
    }
    
    .table-cell[data-label="Year"],
    .table-cell[data-label="IDs"],
    .table-cell[data-label="Links"] {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 10px !important;
    }
    
    .table-cell[data-label="Links"] {
        border-bottom: none;
    }
    
    .pagination {
        flex-direction: column;
        gap: 1rem;
    }
    
    .pagination-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 2% auto;
        max-height: 95vh;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .toast-container {
        left: 20px;
        right: 20px;
        max-width: none;
    }
    
    .nav-dropdown {
        display: block;
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: rgba(26, 26, 26, 0.8);
        margin-left: 20px;
        border-radius: 0;
        min-width: auto;
        width: calc(100% - 20px);
    }
    
    .dropdown-menu.show {
        transform: none;
    }
    
    .dropdown-item {
        padding: 10px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .input-with-button {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-fetch {
        margin-top: 5px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.75rem;
    }
    
    .navbar h1 {
        font-size: 1.2rem;
    }
    
    .container {
        padding: 0.75rem;
    }
    
    .page-title {
        font-size: 1.3rem;
    }
    
    .settings-form {
        padding: 1rem;
    }
    
    .form-input {
        padding: 0.6rem;
        font-size: 16px;
    }
    
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .link-grid {
        padding: 0.75rem 0.5rem;
        gap: 0.5rem;
    }
    
    .form-label {
        font-size: 0.9rem;
    }
}
/* Icon button styles */
/* Icon button styles */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-size: 18px;
        color: white;

}

.btn-add-link {
    background: #28a745;
    color: white;
}

.btn-add-link:hover {
    background: #218838;
    transform: scale(1.05);
}

.btn-add-movie {
    background: #e50914;
    color: white;
}

.btn-add-movie:hover {
    background: #b8070f;
    transform: scale(1.05);
}

.btn-remove {
    background: #e50914;
    color: white;
    width: 35px;
    height: 35px;
    font-size: 14px;
}

.btn-remove:hover {
    background: #b8070f;
    transform: scale(1.05);
}



/* Fix link grid alignment */
.link-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1rem;
}

/* Tooltip styles */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.tooltip::before {
    content: '';
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tooltip:hover::after,
.tooltip:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Mobile tooltip adjustments */
@media (max-width: 768px) {
    .tooltip::after {
        bottom: auto;
        top: 120%;
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .tooltip::before {
        bottom: auto;
        top: 110%;
        border-top-color: transparent;
        border-bottom-color: rgba(0, 0, 0, 0.9);
    }
    
    .link-remove-btn {
        width: 100%;
        border-radius: 6px;
        margin-top: 0.5rem;
        padding: 0.75rem;
        font-size: 0.9rem;
        height: auto;
            color: white;

    }
}
.btn-cancel {
    background: #6c757d;
    color: white;
}

.btn-cancel:hover {
    background: #5a6268;
    transform: scale(1.05);
}
.season-title {
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* breadcrumb css */

.breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 8px;
    border: 1px solid #333;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #b3b3b3;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    color: #e50914;
    background: rgba(229, 9, 20, 0.1);
}

.breadcrumb > span,
.breadcrumb > a:last-child {
    color: #e50914;
    font-weight: 500;
}

.breadcrumb > * + *::before {
    content: "›";
    margin: 0 0.5rem;
    color: #666;
    font-weight: bold;
}

.home-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ccc"><path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/></svg>') no-repeat center;
    background-size: contain;
}

.breadcrumb a:hover .home-icon {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23e50914"><path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/></svg>');
}


/* breadcrumb css */
.btn-dashboard {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #e50914;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-dashboard:hover {
    background: #b2070f;
    transform: translateY(-2px);
}

.btn-dashboard .btn-icon {
    font-size: 1.2rem;
}
.server-audio {
    font-size: 0.8rem;
    color: #FF9800;
    background: rgba(255, 152, 0, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    display: inline-block;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.stats-card {
    background: rgba(45, 45, 45, 0.6);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-2px);
    border-color: #e50914;
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.1);
}

.stats-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(229, 9, 20, 0.1);
    color: #e50914;
}

.stats-icon svg {
    width: 24px;
    height: 24px;
}

.stats-info {
    flex: 1;
}

.stats-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 0.25rem;
}

.stats-label {
    font-size: 0.9rem;
    color: #999;
}

/* Icon Colors */
.movies-icon { background: rgba(229, 9, 20, 0.1); color: #e50914; }
.series-icon { background: rgba(76, 175, 80, 0.1); color: #4CAF50; }
.seasons-icon { background: rgba(33, 150, 243, 0.1); color: #2196F3; }
.episodes-icon { background: rgba(156, 39, 176, 0.1); color: #9C27B0; }
.movie-links-icon { background: rgba(255, 152, 0, 0.1); color: #FF9800; }
.episode-links-icon { background: rgba(0, 188, 212, 0.1); color: #00BCD4; }

/* Responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .stats-card {
        padding: 1rem;
    }
    
    .stats-icon {
        width: 40px;
        height: 40px;
    }
    
    .stats-number {
        font-size: 1.25rem;
    }
}


