:root {
    --primary-color: #01b4e4;
    --secondary-color: #032541;
    --text-color-light: #333;
    --text-color-dark: #f1f1f1;
    --background-light: #f5f7fa;
    --background-dark: #121212;
    --card-bg-light: #fff;
    --card-bg-dark: #1e1e1e;
    --alt-bg-light: #edf2f7;
    --alt-bg-dark: #262626;
    --gray-color: #6c757d;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

body.light-mode {
    background-color: var(--background-light);
    color: var(--text-color-light);
}

body.dark-mode {
    background-color: var(--background-dark);
    color: var(--text-color-dark);
}

.navbar {
    background-color: var(--secondary-color);
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Login Status Banner */
.login-status-banner {
    position: relative;
    z-index: 100;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-status-banner .alert {
    border: none;
    margin-bottom: 0;
    font-size: 0.95rem;
    padding: 1rem;
}

.login-status-banner .alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.dark-mode .login-status-banner .alert-success {
    background-color: #1e4620;
    color: #6fbf73;
    border-color: #2e6b38;
}

.login-status-banner .alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.dark-mode .login-status-banner .alert-warning {
    background-color: #664d03;
    color: #ffecb5;
    border-color: #997404;
}

.login-status-banner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.login-status-banner .btn-close {
    opacity: 0.7;
}

.login-status-banner .btn-close:hover {
    opacity: 1;
}

@media (max-width: 576px) {
    .login-status-banner .alert {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }

    .login-status-banner .container {
        flex-direction: column;
        gap: 0.75rem;
    }

    .login-status-banner .container > div:last-child {
        width: 100%;
        display: flex;
        gap: 0.5rem;
    }

    .login-status-banner .btn {
        flex: 1;
    }

    .d-none.d-sm-inline {
        display: inline !important;
    }
}

.bg-alt {
    background-color: var(--alt-bg-light);
}

.dark-mode .bg-alt {
    background-color: var(--alt-bg-dark);
}



/* Hero Slideshow */
.hero-slideshow {
    position: relative;
    height: 70vh;
    min-height: 500px;
    max-height: 800px;
    overflow: hidden;
    margin-bottom: 2rem;

    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    z-index: 0;
    pointer-events: none; 
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
    pointer-events: auto; 
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        0deg,
        rgba(0,0,0,0.8) 0%,
        rgba(0,0,0,0.5) 50%,
        rgba(0,0,0,0.3) 100%
    );
}

.hero-content {
    position: relative;
    color: white;
    padding: 2.5rem 0;
    max-width: 800px;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
}

.hero-slide.active .hero-content {
    animation: fadeInUp 1s ease-out forwards;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-info {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.hero-info > * {
    margin-right: 1.5rem;
}

.hero-overview {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    max-width: 600px;
    display: -webkit-box;
    /* -webkit-line-clamp: 3; */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-controls {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    pointer-events: none; 
}

.hero-control {
    background-color: rgba(0,0,0,0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    pointer-events: auto; 
    opacity: 0.7;
}

.hero-control:hover {
    background-color: rgba(0,0,0,0.8);
    transform: scale(1.1);
    opacity: 1;
}

.hero-control:focus {
    outline: none;
}

.hero-indicators {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.hero-indicator:hover {
    transform: scale(1.2);
}

.hero-indicator.active {
    background-color: white;
    transform: scale(1.2);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-slideshow {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-overview {
        font-size: 1rem;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
}

.simple-banner {
    display: none;
}

.content-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 12px;
    overflow: hidden;
    border: none;
}

.light-mode .content-card {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background-color: var(--card-bg-light);
}

.dark-mode .content-card {
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    background-color: var(--card-bg-dark);
}

.content-card:hover {
    transform: translateY(-8px);
}

.light-mode .content-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.dark-mode .content-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
}

.card-img-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.content-card:hover .card-img-wrapper::before {
    opacity: 1;
}

.content-card img {
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s;
}

.content-card:hover img {
    transform: scale(1.05);
}

.content-card .card-body {
    padding: 1rem;
}

.content-card .card-title {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.content-card .rating {
    font-weight: 600;
}

/* Quick Action Icons on Cards */
.quick-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s;
}

.content-card:hover .quick-actions {
    opacity: 1;
}

.quick-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    /* backdrop-filter: blur(4px); */
}

.quick-action-btn:hover {
    transform: scale(1.15);
}

.quick-action-btn.watched-btn:hover,
.quick-action-btn.watched-btn.active {
    background: #28a745;
    color: #fff;
}

.quick-action-btn.watchlist-btn:hover,
.quick-action-btn.watchlist-btn.active {
    background: #007bff;
    color: #fff;
}

/* Status badges shown on cards */
.card-status-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    display: flex;
    gap: 4px;
}

.status-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #fff;
}

.status-icon.watched {
    background: #28a745;
}

.status-icon.watchlist {
    background: #007bff;
}

.cast-card img {
    height: 150px;
    object-fit: cover;
}

.backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
   
    z-index: 1;
}

.content-detail {
    position: relative;
    color: white;
    padding-top: 2rem;
    min-height: 100vh;
}

.content-detail .container {
    position: relative;
    z-index: 1;
}

.no-image {
    width: 100%;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.light-mode .no-image {
    background-color: #e9ecef;
    color: #6c757d;
}

.dark-mode .no-image {
    background-color: #2e2e2e;
    color: #a0a0a0;
}

.no-image-large {
    width: 100%;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.light-mode .no-image-large {
    background-color: #e9ecef;
    color: #6c757d;
}

.dark-mode .no-image-large {
    background-color: #2e2e2e;
    color: #a0a0a0;
}

footer {
    margin-top: 3rem;
}


.theme-switch-wrapper {
    display: inline-flex;
    align-items: center;
}

.theme-switch {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}


.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0096c7;
    border-color: #0096c7;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.badge {
    font-weight: 500;
    padding: 0.5em 0.7em;
}

.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(1, 180, 228, 0.1);
    color: var(--primary-color);
}

.page-link {
    color: var(--primary-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .carousel-item {
        height: 400px;
    }
    
    .carousel-caption {
        bottom: 20px;
        padding: 1rem;
    }
    
    .content-card img {
        height: 200px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.release-date {
    font-weight: 500;
    color: var(--primary-color);
}

.card-body {
    position: relative;
    z-index: 2;
}

/* People page styling */
.people-card img {
    height: 250px;
    object-fit: cover;
}

.people-card .no-image {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef;
    color: #6c757d;
}

.dark-mode .people-card .no-image {
    background-color: #2e2e2e;
    color: #a0a0a0;
}

.person-details .social-links {
    margin-top: 1rem;
}

.person-details .social-links a {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--primary-color);
}

.person-filmography {
    margin-top: 2rem;
}

.person-filmography .nav-link {
    color: var(--text-color-light);
}

.dark-mode .person-filmography .nav-link {
    color: var(--text-color-dark);
}

.person-filmography .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

/* Progress Tracking Styles */
.episode-watched {
    opacity: 0.7;
    background-color: rgba(1, 180, 228, 0.1);
}

.btn-outline-success.active {
    background-color: #198754;
    color: white;
    border-color: #198754;
}

.btn-outline-info.active {
    background-color: #0dcaf0;
    color: white;
    border-color: #0dcaf0;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}


@media (max-width: 991.98px) { 
    .github-corner svg {
        width: 40px;
        height: 40px;
    }
}

.status-dot {
    font-size: 10px;   /* size of the dot */
    vertical-align: middle;
}

.status-online {
    color: #28a745; /* green */
}

.status-offline {
    color: #fd7e14; /* orange */
}

/* Personal Card Styling */
.personal-card {
    background: var(--card-bg-light);
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.dark-mode .personal-card {
    background: var(--card-bg-dark);
    border-color: #444;
}

.personal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.personal-card .card-header {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: #f0f0f0;
}

.dark-mode .personal-card .card-header {
    background: #333;
}

.personal-card .card-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.personal-card:hover .card-poster {
    transform: scale(1.05);
}

.personal-card .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.personal-card:hover .card-overlay {
    opacity: 1;
}

.personal-card .card-body {
    padding: 1rem;
    flex: 1;
    overflow-y: auto;
}

.personal-card .card-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-color-light);
}

.dark-mode .personal-card .card-title {
    color: var(--text-color-dark);
}

/* Review Preview Section */
.review-preview {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}

.dark-mode .review-preview {
    border-top-color: #444;
}

.rating-stars {
    display: flex;
    gap: 0.25rem;
    font-size: 0.875rem;
}

.rating-stars i {
    cursor: default;
}

/* Modal Styling */
.modal-content {
    border: 1px solid #444;
}

.modal-header {
    border-bottom: 1px solid #444;
}

.modal-footer {
    border-top: 1px solid #444;
}

.modal-body .movie-info {
    background: rgba(1, 180, 228, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

/* Rating Slider in Modal */
.rating-slider {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-slider .form-range {
    flex: 1;
}

.rating-display {
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 500;
    color: #ff9800;
}

/* Form Elements */
.personal-card .form-control,
.personal-card .form-range {
    border-color: #ddd;
    font-size: 0.875rem;
}

.personal-card .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(1, 180, 228, 0.25);
}

.dark-mode .personal-card .form-control {
    background: #333;
    border-color: #555;
    color: #fff;
}

.dark-mode .personal-card .form-control:focus {
    background: #333;
    border-color: var(--primary-color);
    color: #fff;
}

/* Modal Form Elements */
#reviewModal .form-control,
#reviewModal .form-range {
    background: #404040;
    border-color: #555;
    color: #fff;
}

#reviewModal .form-control:focus {
    background: #404040;
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(1, 180, 228, 0.25);
}

#reviewModal .form-label {
    color: #ccc;
    font-weight: 500;
}

/* Character Counter */
.personal-card    {
    font-size: 0.75rem;
}

/* Button Styling */
.personal-card .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-size: 0.875rem;
}

.personal-card .btn-primary:hover {
    background-color: #0099b8;
    border-color: #0099b8;
}

.personal-card .btn-primary:disabled {
    background-color: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
}

