/* Authentication Pages Dark Theme Styling */
.card.auth-card,
.auth-card.card,
div.auth-card {
    background: #000000 !important;
    background-color: #000000 !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 15px !important;
    transition: all 0.3s ease !important;
    overflow: visible !important;
}

.card.auth-card:hover,
.auth-card.card:hover,
div.auth-card:hover {
    border-color: rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.card.auth-card .card-header,
.auth-card.card .card-header,
div.auth-card .card-header {
    background: transparent !important;
    background-color: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-top-left-radius: 13px !important;
    border-top-right-radius: 13px !important;
    color: #ffffff !important;
}

.card.auth-card .card-body,
.auth-card.card .card-body,
div.auth-card .card-body {
    background: #000000 !important;
    background-color: #000000 !important;
    color: #e0e0e0 !important;
    border-bottom-left-radius: 13px !important;
    border-bottom-right-radius: 13px !important;
}

.auth-link {
    color: #0d6efd !important;
    transition: color 0.3s ease !important;
}

.auth-link:hover {
    color: #0a58ca !important;
}

.text-muted-custom {
    color: #6c757d !important;
}

/* Account Page Dark Theme Styling */
.account-card {
    background: #000000 !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 15px !important;
    transition: all 0.3s ease !important;
}

.account-card .card-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

.account-card .card-body {
    color: #e0e0e0 !important;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.stat-card .card-body {
    color: #e0e0e0 !important;
}

/* Modal Dark Theme Overrides */
#deleteAccountModal .modal-content {
    background-color: #000000 !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 15px !important;
}

#deleteAccountModal .modal-header {
    background-color: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

#deleteAccountModal .modal-header.bg-danger {
    background-color: rgba(220, 53, 69, 0.2) !important;
    border-color: rgba(220, 53, 69, 0.4) !important;
}

#deleteAccountModal .modal-body {
    background-color: #000000 !important;
    color: #e0e0e0 !important;
}

#deleteAccountModal .modal-body p,
#deleteAccountModal .modal-body ul,
#deleteAccountModal .modal-body li {
    color: #e0e0e0 !important;
}

#deleteAccountModal .modal-body .alert-warning {
    background-color: rgba(255, 193, 7, 0.2) !important;
    border: 1px solid rgba(255, 193, 7, 0.4) !important;
    color: #ffc107 !important;
}

#deleteAccountModal .modal-body .form-control {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #e0e0e0 !important;
}

#deleteAccountModal .modal-body .form-control:focus {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
    color: #ffffff !important;
}

#deleteAccountModal .modal-body .form-control::placeholder {
    color: #6c757d !important;
}

#deleteAccountModal .modal-footer {
    background-color: #000000 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
}

#deleteAccountModal .modal-body .form-text {
    color: #dc3545 !important;
}

/* Sidebar Logo Styling */
.sidebar > div > div:first-child {
    text-align: left !important;
}

.sidebar .logo-container {
    width: 100% !important;
    margin: 0 !important;
    text-align: left !important;
    padding: 15px 0;
    display: block !important;
}

.sidebar .responsive-logo {
    width: auto !important;
    max-width: 150px;
    height: auto;
    display: inline-block !important;
    margin: 0 !important;
    margin-left: 1.2rem !important; /* Align with menu item text after icon */
    float: left !important;
}

/* User Info Styling */
.sidebar .user-info {
    text-align: left !important;
}

.sidebar .user-details {
    text-align: left !important;
    padding-left: 0.8rem !important;
}

.sidebar .user-email {
    text-align: left !important;
}

.sidebar .user-type {
    text-align: left !important;
    display: inline-block;
}

/* Library Page Video Container Styling */
.video-player-container {
    position: relative;
    width: 100%;
    max-height: 300px;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-player-container video {
    width: 100%;
    height: 100%;
    max-height: 300px;
    object-fit: contain;
}

/* Ensure consistent card heights */
.video-card,
.clip-card,
.supercut-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.video-card .video-info,
.clip-card .video-info,
.supercut-card .video-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.video-card .video-info .mt-3,
.clip-card .video-info .mt-3,
.supercut-card .video-info .mt-3 {
    margin-top: auto !important;
}

/* Django Hijack Notification - Bottom Right Dark Theme */
.hijack-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
    animation: slideInFromRight 0.3s ease-out;
}

@keyframes slideInFromRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.hijack-notification-content {
    background: #000000;
    border: 2px solid rgba(220, 53, 69, 0.6);
    border-radius: 15px;
    padding: 15px 20px;
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.3), 0 0 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.hijack-notification-content:hover {
    border-color: rgba(220, 53, 69, 0.8);
    box-shadow: 0 15px 40px rgba(220, 53, 69, 0.4), 0 0 25px rgba(0, 0, 0, 0.6);
    transform: translateY(-2px);
}

.hijack-notification .hijack-title {
    color: #e0e0e0;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.hijack-notification .hijack-username {
    color: #dc3545;
    font-size: 0.95rem;
    font-weight: 700;
}

.hijack-notification .bi-person-fill-lock {
    color: #dc3545;
}

.hijack-notification .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hijack-notification .btn-danger:hover {
    background-color: #bb2d3b;
    border-color: #b02a37;
    transform: scale(1.05);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .hijack-notification {
        bottom: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
    }

    .hijack-notification-content {
        padding: 12px 15px;
    }
}

/* Hijack Release Button in Sidebar - Match nav-link style */
.sidebar form button.nav-link {
    font-size: inherit;
    font-family: inherit;
    line-height: inherit;
}

.sidebar form button.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar form button.nav-link:focus {
    outline: none;
    box-shadow: none;
}