/* Dark Reader Theme - Modern Dark Theme */

/* CSS Variables for consistent theming */
:root {
    --bg-primary: #121212;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #222222;
    --bg-card: #1a1a1a;
    --bg-navbar: #1a1a1a;
    --bg-header: #222222;
    
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #999999;
    --text-accent: #D91300;
    
    --border-color: #333333;
    --border-light: #444444;
    
    --accent-primary: #D91300;
    --accent-secondary: #00bcd4;
    --accent-success: #4CAF50;
    --accent-warning: #ffc107;
    --accent-danger: #d9534f;
    --accent-info: #17a2b8;
    
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.2);
    --shadow-heavy: rgba(0, 0, 0, 0.3);
}

/* Global dark theme */
body {
    background-color: var(--bg-primary) !important;
    color: var(--text-secondary) !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    font-size: 16px;
}

/* Mobile-first responsive design */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
}

/* Navigation styling */
.navbar {
    background-color: var(--bg-navbar) !important;
    border-bottom: 1px solid #DB16014F;
    box-shadow: 0 2px 10px var(--shadow-medium);
    padding: 0.5rem 0;
}

/* Mobile navigation optimizations */
@media (max-width: 991.98px) {
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-brand img {
        max-width: 100px !important;
        height: auto !important;
    }
    
    .navbar-toggler {
        border: 2px solid var(--accent-primary) !important;
        padding: 0.5rem 0.75rem;
        font-size: 1.25rem;
        background-color: var(--bg-tertiary);
        border-radius: 0.375rem;
        transition: all 0.3s ease;
    }
    
    .navbar-toggler:hover {
        background-color: var(--accent-primary);
        border-color: var(--accent-primary);
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(124, 19, 11, 0.25);
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        border-top: 1px solid var(--border-color);
        padding-top: 1rem;
        background-color: var(--bg-navbar);
        border-radius: 0.5rem;
        margin-left: -0.75rem;
        margin-right: -0.75rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .navbar-nav {
        text-align: center;
        width: 100%;
    }
    
    .navbar-nav .nav-item {
        width: 100%;
        margin-bottom: 0.25rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        margin: 0.25rem 0;
        border-radius: 0.375rem;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    
    .navbar-nav .nav-link i {
        margin-right: 0.5rem;
        font-size: 1.1rem;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: var(--bg-tertiary);
        transform: translateY(-1px);
    }
    
    .navbar-nav .nav-link.active {
        background-color: var(--accent-primary);
        color: white !important;
        font-weight: 600;
    }
    
    .navbar-nav .btn {
        margin: 0.5rem 0;
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .navbar-nav .btn i {
        margin-right: 0.5rem;
    }
}

.navbar-brand {
    color: var(--text-accent) !important;
    font-weight: bold;
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 600;
    font-size:17px;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--text-primary) !important;
    background-color: var(--bg-tertiary);
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    color: var(--text-primary) !important;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--accent-primary);
}

.navbar-nav .nav-link i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

/* Supporter button styling */
.supporter-btn {
    background: linear-gradient(135deg, #D91300 0%, #6B1A1A 100%);
    border: none;
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(124, 19, 11, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.supporter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.supporter-btn:hover::before {
    left: 100%;
}

.supporter-btn:hover {
    background: linear-gradient(135deg, #6B1A1A 0%, #D91300 100%);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 19, 11, 0.4);
}

.supporter-btn i {
    margin-right: 0.5rem;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Button styling */
.btn-outline-danger {
    color: var(--accent-danger);
    border-color: var(--accent-danger);
    background-color: transparent;
}

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

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

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

.btn-outline-success {
    color: var(--accent-success);
    border-color: var(--accent-success);
    background-color: transparent;
}

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

.logout-btn {
    background: linear-gradient(135deg, #D91300 0%, #6B1A1A 100%);
    border: none;
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(124, 19, 11, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.logout-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s;
}

.logout-btn:hover::before {
    left: 100%;
}

.logout-btn:hover {
    background: linear-gradient(135deg, #6B1A1A 0%, #D91300 100%);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 19, 11, 0.4);
}

/* Card styling */
.stats-card, .card {
    background-color: var(--bg-card) !important;
    border: 1px solid #DB16014F;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow-medium);
    margin-bottom: 1.5rem;
    padding: 1.5rem;
}

/* Mobile card optimizations */
@media (max-width: 768px) {
    .stats-card, .card {
        margin-bottom: 1rem;
        padding: 1rem;
        border-radius: 8px;
    }
    
    .stats-card .card-header, .card-header {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    .stats-card .card-body, .card-body {
        padding: 1rem;
    }
}

.stats-card .card-header, .card-header {
    background-color: var(--bg-header) !important;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 600;
}

.stats-card .card-body, .card-body {
    background-color: var(--bg-card) !important;
    color: var(--text-secondary);
}

/* Mobile button optimizations */
@media (max-width: 768px) {
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        min-height: 44px; /* iOS touch target minimum */
    }
    
    .btn-sm {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        min-height: 36px;
    }
    
    .btn-lg {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 52px;
    }
    
    .supporter-btn {
        width: 100%;
        margin: 0.5rem 0;
        justify-content: center;
    }
    
    .logout-btn {
        width: 100%;
        margin: 0.5rem 0;
        justify-content: center;
    }
}

/* Page headers */
.page-header {
    background-color: var(--bg-header);
    border: 1px solid #DB16014F;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px var(--shadow-medium);
}

.page-header h1 {
    color: var(--text-accent);
    font-weight: bold;
}

.page-header p {
    color: var(--text-secondary);
}

/* Mobile page header optimizations */
@media (max-width: 768px) {
    .page-header {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
        border-radius: 8px;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .page-header p {
        font-size: 0.9rem;
        margin-bottom: 0;
    }
}

/* Content containers */
.content-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 32px var(--shadow-medium);
}

/* Mobile content container optimizations */
@media (max-width: 768px) {
    .content-container {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Active streams styling */
.currently-watching-item {
    background-color: var(--bg-tertiary) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.currently-watching-item:hover {
    background-color: var(--bg-secondary) !important;
    border-color: var(--accent-primary) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px var(--shadow-medium);
}

/* Badge styling */
.badge.bg-secondary {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.badge.bg-dark {
    background-color: var(--bg-secondary) !important;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

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

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

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

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

/* Text colors */
.text-muted {
    color: #d8d4d4 !important;
    padding-left: 5px;
}

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

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

/* Form elements */
.form-control, .form-select {
    background-color: var(--bg-tertiary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-secondary) !important;
}

.form-control:focus, .form-select:focus {
    background-color: var(--bg-tertiary) !important;
    border-color: var(--accent-primary) !important;
    color: var(--text-secondary) !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 55, 36, 0.25);
}

/* Invite section styling */
.invite-section {
    margin-top: 1.5rem;
    margin-bottom:1.5rem;
    padding-top: 1rem;
}

.invite-section .btn-outline-secondary {
    border-color: var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.invite-section .btn-outline-secondary:hover {
    background-color: rgba(255, 107, 107, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-1px);
}

/* Modal styling for invite */
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-header);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    background: var(--bg-header);
}

.modal-body .form-control {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.modal-body .form-control:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 0.2rem rgba(220, 55, 36, 0.25);
}

.modal-body .form-label {
    color: var(--text-primary);
    font-weight: 500;
}

/* FAQ Page specific styling */
.faq-page .btn-primary {
    background-color: var(--accent-primary) !important;
    border-color: var(--accent-primary) !important;
}

.faq-page .btn-primary:hover {
    background-color: #e55a24 !important;
    border-color: #e55a24 !important;
}

.faq-page .btn-outline-primary {
    border-color: var(--accent-primary) !important;
    color: var(--accent-primary) !important;
}

.faq-page .btn-outline-primary:hover {
    background-color: var(--accent-primary) !important;
    border-color: var(--accent-primary) !important;
    color: white !important;
}

.faq-page .btn-outline-secondary:hover {
    background-color: var(--accent-primary) !important;
    border-color: var(--accent-primary) !important;
    color: white !important;
}

/* Mobile form optimizations */
@media (max-width: 768px) {
    .form-control, .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
        min-height: 44px;
    }
    
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .table-responsive {
        font-size: 0.85rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem 0.25rem;
        vertical-align: middle;
    }
}

/* Table styling */
.table {
    background-color: var(--bg-card) !important;
    color: var(--text-secondary);
}

.table th {
    background-color: var(--bg-header) !important;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.table td {
    border-color: var(--border-color);
}

.table-hover tbody tr:hover {
    background-color: var(--bg-tertiary) !important;
}

/* List styling */
.list-group-item {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-secondary);
}

.list-group-item:hover {
    background-color: var(--bg-tertiary) !important;
}

/* Modal styling */
.modal-content {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.modal-header {
    background-color: var(--bg-header) !important;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.modal-footer {
    background-color: var(--bg-header) !important;
    border-top: 1px solid var(--border-color);
}

/* Dropdown styling */
.dropdown-menu {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px var(--shadow-medium);
}

.dropdown-item {
    color: var(--text-secondary);
}

.dropdown-item:hover {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-primary);
}

/* Alert styling */
.alert {
    background-color: var(--bg-tertiary) !important;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.alert-success {
    background-color: rgba(76, 175, 80, 0.1) !important;
    border-color: var(--accent-success);
    color: var(--accent-success);
}

.alert-danger {
    background-color: rgba(217, 83, 79, 0.1) !important;
    border-color: var(--accent-danger);
    color: var(--accent-danger);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1) !important;
    border-color: var(--accent-warning);
    color: var(--accent-warning);
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.1) !important;
    border-color: var(--accent-info);
    color: var(--accent-info);
}

/* Progress bars */
.progress {
    background-color: var(--bg-tertiary) !important;
}

.progress-bar {
    background-color: var(--accent-primary) !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-light);
}

/* Icon colors */
.bi {
    color: var(--text-secondary);
}

.bi.bi-tv, .bi.bi-film, .bi.bi-music-note, .bi.bi-play-circle-fill {
    color: #0281f5 !important;
}

.bi.bi-graph-up, .bi.bi-calendar-event, .bi.bi-list-check, .bi.bi-question-circle {
    color: var(--accent-primary) !important;
}

/* Footer styling */
footer {
    background-color: var(--bg-navbar);
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 1rem 0;
    margin-top: 3rem;
}

/* Utility classes */
.bg-light {
    background-color: var(--bg-tertiary) !important;
}

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

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

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

.shadow {
    box-shadow: 0 4px 20px var(--shadow-medium) !important;
}

/* Chart.js canvas background */
canvas {
    background-color: var(--bg-card) !important;
}

/* Dashboard-specific styling */
.welcome-card {
    background: linear-gradient(145deg, #D91300 0%, #6B1A1A 30%, #4A0000 80%, #2d0606 100%);
    color: var(--text-primary);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(178, 34, 34, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(178, 34, 34, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139, 26, 26, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.profile-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.fallback-icon {
    display: none;
}

/* Profile image alignment fixes - All screen sizes */
.welcome-card .row {
    align-items: center;
}

.welcome-card .col-md-4 {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 60px; /* Match the profile image height */
}

.welcome-card .col-md-4 .profile-image,
.welcome-card .col-md-4 .fallback-icon {
    vertical-align: middle;
}

/* Mobile: Smaller profile image */
@media (max-width: 767.98px) {
    .profile-image {
        width: 40px;
        height: 40px;
    }
    
    .fallback-icon {
        font-size: 2rem !important;
    }
}

.news-item {
    transition: all 0.3s ease;
    border-radius: 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--accent-primary);
}

.news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 55, 36, 0.2);
    border-color: var(--accent-primary);
}

.news-item .border-start {
    border-left-width: 4px !important;
    border-left-color: var(--accent-primary) !important;
}

.news-item h6 {
    font-weight: 600;
    color: var(--text-primary);
}

.news-item .btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

.stats-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.user-info {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom:10px;
    box-shadow: 0 4px 15px var(--shadow-medium);
    border: 1px solid #DB16014F;
}

.user-info h5 {
    color: var(--text-primary);
}

.user-info strong {
    color: var(--accent-primary);
}

.stats-badge {
    background: linear-gradient(135deg, #D91300 0%, #6B1A1A 50%, #4A0000 100%);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(178, 34, 34, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.stats-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.stats-badge:hover::before {
    left: 100%;
}

.library-breakdown {
    max-height: 200px;
    overflow-y: auto;
}

.library-breakdown::-webkit-scrollbar {
    width: 6px;
}

.library-breakdown::-webkit-scrollbar-track {
    background: rgba(220, 55, 36, 0.1);
    border-radius: 3px;
}

.library-breakdown::-webkit-scrollbar-thumb {
    background: rgba(220, 55, 36, 0.5);
    border-radius: 3px;
}

.top-content-item {
    transition: all 0.3s ease;
}

.top-content-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 55, 36, 0.2);
}

.stats-highlight {
    background: linear-gradient(135deg, rgba(178, 34, 34, 0.15) 0%, rgba(107, 26, 26, 0.1) 50%, rgba(26, 0, 0, 0.05) 100%);
    border: 1px solid rgba(178, 34, 34, 0.3);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.stats-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(178, 34, 34, 0.05) 50%, transparent 70%);
    pointer-events: none;
}

/* Statistics page specific styling */
.page-title {
    color: var(--accent-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Statistics page header styling */
.page-header h1 {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header h1 i {
    color: var(--accent-primary);
    margin-right: 0.5rem;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 0;
}

.metric-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
    border: 1px solid var(--accent-primary);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(124, 19, 11, 0.1);
}

.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(124, 19, 11, 0.2);
    border-color: var(--accent-primary);
}

.metric-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.metric-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.library-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid var(--accent-primary);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(124, 19, 11, 0.1);
    height: 100%;
}

.library-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(124, 19, 11, 0.2);
    border-color: var(--accent-primary);
}

.library-icon {
    font-size: 1.8rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.library-count {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.library-name {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.stat-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: rgba(124, 19, 11, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(124, 19, 11, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(124, 19, 11, 0.15);
    transform: translateX(5px);
}

.stat-rank {
    background: var(--accent-primary);
    color: var(--text-primary);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 1rem;
    font-size: 0.8rem;
}

.stat-title {
    flex: 1;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.stat-count {
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 1rem;
}

.chart-container {
    position: relative;
    height: 400px;
    margin: 1rem 0;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Upcoming Releases page specific styling */
.page-header {
    background: rgba(45, 27, 27, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(124, 19, 11, 0.2);
}

.calendar-container {
    background: rgba(45, 27, 27, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(124, 19, 11, 0.2);
}

.day-header {
    background: linear-gradient(145deg, #D91300 0%, #6B1A1A 30%, #4A0000 80%, #2d0606 100%);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(124, 19, 11, 0.3);
}

.release-card {
    background: rgba(26, 26, 26, 0.9);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border-left: 4px solid #D91300;
    border: 1px solid rgba(124, 19, 11, 0.2);
}

.release-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 19, 11, 0.2);
    border-color: rgba(124, 19, 11, 0.4);
}

.release-card.movie {
    border-left-color: #D91300;
}

.release-card.tv {
    border-left-color: #6B1A1A;
}

.release-card.downloaded {
    border-left-color: #6c757d;
    opacity: 0.7;
}

.release-image {
    width: 450px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.release-info h6 {
    margin-bottom: 0;
    font-weight: 700;
    color: var(--text-primary) !important;
    font-size: 1.1rem;
    flex: 1;
}

.episode-info {
    border-left: 3px solid #6B1A1A;
    padding-left: 0.75rem;
    margin-left: -0.75rem;
}

.episode-info span {
    font-size: 0.95rem;
    color: var(--text-primary) !important;
}

.release-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.type-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    color: var(--accent-primary);
}

.week-navigation {
    text-align: center;
    background-color: rgba(45, 27, 27, 0.95);
    border: 1px solid #DB16014F;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px var(--shadow-medium);
}

.week-nav-btn {
    background: linear-gradient(135deg, #D91300 0%, #6B1A1A 100%);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(124, 19, 11, 0.3);
    flex-shrink: 1;
    min-width: 0;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.week-nav-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(124, 19, 11, 0.4);
    color: white;
    background: linear-gradient(135deg, #D91300 0%, #6B1A1A 100%);
}

.current-week {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Additional statistics page improvements */
.stats-card h3 {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.stats-card h3 i {
    color: var(--accent-primary);
    margin-right: 0.5rem;
}

.stats-card .text-muted {
    color: var(--text-muted) !important;
    font-size: 0.95rem;
}

/* Improve chart containers */
.chart-container {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(124, 19, 11, 0.1);
}

/* Improve section headers */
.section-header {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-primary);
}

/* Horizontal library cards layout */
.library-cards-horizontal .library-card {
    padding: 0.75rem;
    text-align: center;
}

.library-cards-horizontal .library-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.library-cards-horizontal .library-count {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.library-cards-horizontal .library-name {
    font-size: 0.75rem;
    margin-bottom: 0;
}

/* Fix photos icon color */
.library-card .bi-images,
.library-card .bi-folder,
.library-card .bi-collection {
    color: var(--accent-primary) !important;
}

/* Statistics column header styling */
.stat-column-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.5rem;
    padding-right: 0.5rem;
}

/* Mobile optimizations for specific containers */
@media (max-width: 768px) {
    .calendar-container {
        padding: 1rem;
        border-radius: 10px;
        margin: 0.5rem;
    }
    
    .welcome-card {
        padding: 0.75rem;
        margin: 0.5rem;
        border-radius: 8px;
    }
    
    .iframe-container {
        padding: 0.5rem;
        margin: 0.5rem;
    }
    
    .iframe-container iframe {
        min-height: 400px;
        border-radius: 8px;
    }
    
    .day-header {
        padding: 0.75rem;
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .library-card {
        margin-bottom: 0.75rem;
        padding: 1rem;
    }
    
    .library-card h6 {
        font-size: 0.9rem;
    }
    
    .library-card .text-muted {
        font-size: 0.8rem;
    }
    
    /* Mobile grid optimizations */
    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    .col-md-6,
    .col-lg-4,
    .col-lg-6,
    .col-lg-8 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        margin-bottom: 1rem;
    }
    
    /* Mobile text sizing */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }
    h5 { font-size: 1rem; }
    h6 { font-size: 0.9rem; }
    
    /* Mobile spacing */
    .mb-4 { margin-bottom: 1rem !important; }
    .mb-3 { margin-bottom: 0.75rem !important; }
    .mt-4 { margin-top: 1rem !important; }
    .mt-3 { margin-top: 0.75rem !important; }
}

.stat-column-header .stat-units {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Additional text visibility fixes for upcoming releases */
.release-card .text-dark {
    color: var(--text-primary) !important;
}

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

.release-card .text-muted {
    color: var(--text-muted) !important;
}

.release-card .small {
    color: var(--text-secondary) !important;
}

.release-card p {
    color: var(--text-secondary) !important;
}

.release-card .fw-bold {
    color: var(--text-primary) !important;
}

.release-card .fw-medium {
    color: var(--text-primary) !important;
}

/* Override Bootstrap text-dark class globally for dark theme */
.text-dark {
    color: var(--text-primary) !important;
}

/* Fix badge text colors */
.badge.bg-light {
    background-color: rgba(124, 19, 11, 0.2) !important;
    color: var(--text-primary) !important;
}

.badge.bg-light.text-dark {
    color: var(--text-primary) !important;
}

/* Login page specific styling */
.login-page-body {
    background: linear-gradient(135deg, #040404 0%, #1c1111 25%, #371b1b 50%, #1c1111 75%, #000 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: rgba(45, 27, 27, 0.95);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    padding: 3rem;
    margin: 1.5rem;
    max-width: 500px;
    width: 100%;
    border: 1px solid #DB16014F;
    backdrop-filter: blur(10px);
}

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

.login-header h1 {
    color: #f8f9fa;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #adb5bd;
    margin: 0;
}

.plex-btn {
    background: linear-gradient(135deg, #D91300 0%, #6B1A1A 100%);
    border: none;
    color: white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    width: 100%;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 4px 15px rgba(124, 19, 11, 0.3);
    position: relative;
    overflow: hidden;
}

.plex-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.plex-btn:hover::before {
    left: 100%;
}

.plex-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(124, 19, 11, 0.4);
    color: white;
    background: linear-gradient(135deg, #6B1A1A 0%, #D91300 100%);
}

.plex-btn i {
    margin-right: 0.5rem;
}

.error-message {
    background: rgba(220, 53, 69, 0.2);
    color: #f8d7da;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.footer {
    background: var(--bg-navbar) !important;
    border-top: 1px solid #DB16014F;
    margin-top: 2rem;
}

.footer .text-muted {
    color: #adb5bd !important;
    font-size: 0.9rem;
}

.footer .bi-heart-fill {
    color: #ff6b6b !important;
}

.footer .bi-code-slash {
    color: #ff6b6b !important;
}

/* Supporter Message Styling */
.supporter-message {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background: var(--accent-primary);
    color: white !important;
    border-radius: 0.375rem;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
    border: 1px solid var(--accent-primary);
    height: 38px; /* Match button height */
    line-height: 1.5;
}

.supporter-message:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: white !important;
    text-decoration: none;
}

.supporter-message .bi-heart-fill {
    margin-right: 0.5rem;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Navbar alignment fixes */
.navbar-nav .nav-item {
    display: flex;
    align-items: center;
}

.navbar-nav .nav-item .supporter-message,
.navbar-nav .nav-item .btn {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

/* Mobile: Move user-info box to bottom */
@media (max-width: 767.98px) {
    .row .col-md-4:first-child {
        order: 2; /* Move user-info to bottom */
    }
    
    .row .col-md-8 {
        order: 1; /* Move news section to top */
    }
}

.login-header img {
    width: 200px;
    height: auto;
    margin-bottom: 1rem;
}

/* Featured Article Styling */
.featured-article {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
    border: 2px solid rgba(255, 193, 7, 0.3) !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.featured-article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 193, 7, 0.05) 50%, transparent 70%);
    pointer-events: none;
}

.featured-article:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.5) !important;
}

.featured-article h6 {
    font-weight: 600;
    line-height: 1.3;
}

.featured-article .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
}

.featured-article .badge.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%) !important;
    color: #000 !important;
    font-weight: 600;
}

/* Mobile responsive for featured article */
@media (max-width: 768px) {
    .featured-article {
        padding: 1rem !important;
    }
    
    .featured-article h6 {
        font-size: 1rem;
    }
    
    .featured-article .d-flex.align-items-center.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
    }
}

/* Search Container Styling */
.search-container {
    position: relative;
}

.search-container .input-group-text {
    background: #2d3748;
    border: 1px solid #4a5568;
    color: #a0aec0;
}

.search-container .form-control {
    background: #2d3748;
    border: 1px solid #4a5568;
    color: #ffffff;
    transition: all 0.3s ease;
}

.search-container .form-control:focus {
    background: #2d3748;
    border-color: #ff6b6b;
    color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 107, 0.25);
}

.search-container .form-control::placeholder {
    color: #718096;
}

.search-container .btn-outline-secondary {
    background: #2d3748;
    border: 1px solid #4a5568;
    color: #a0aec0;
    transition: all 0.3s ease;
}

.search-container .btn-outline-secondary:hover {
    background: #4a5568;
    border-color: #718096;
    color: #ffffff;
}

/* Week Navigation Updates */
.week-navigation {
    background-color: rgba(45, 27, 27, 0.95);
    border: 1px solid #DB16014F;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* Week navigation controls (buttons and current week) */
.week-navigation > .week-nav-btn,
.week-navigation > .current-week {
    flex: 0 0 auto;
    min-width: 0;
    max-width: 100%;
}

/* Group the week navigation elements together */
.week-navigation .week-nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}





.current-week {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    min-width: 200px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Search Container within Week Navigation */
.week-navigation .search-container {
    flex: 0 0 auto;
    min-width: 300px;
}

.week-navigation .search-container .input-group-text {
    background: #0f1419;
    border: 1px solid #2d3748;
    color: #a0aec0;
}

.week-navigation .search-container .form-control {
    background: #0f1419;
    border: 1px solid #2d3748;
    color: #ffffff;
    transition: all 0.3s ease;
}

.week-navigation .search-container .form-control:focus {
    background: #0f1419;
    border-color: #ff6b6b;
    color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 107, 0.25);
}

.week-navigation .search-container .form-control::placeholder {
    color: #718096;
}

.week-navigation .search-container .btn-outline-secondary {
    background: #0f1419;
    border: 1px solid #2d3748;
    color: #a0aec0;
    transition: all 0.3s ease;
}

.week-navigation .search-container .btn-outline-secondary:hover {
    background: #2d3748;
    border-color: #4a5568;
    color: #ffffff;
}

/* Mobile responsive for integrated search */
@media (max-width: 768px) {
    .week-navigation {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.25rem;
        text-align: center;
    }
    
    .week-navigation .week-nav-controls {
        order: 2;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .week-navigation .search-container {
        min-width: 100%;
        width: 100%;
        order: 1;
        margin-bottom: 0.5rem;
    }
    
    .week-nav-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        min-width: 140px;
        width: 100%;
        max-width: 200px;
        border-radius: 25px;
        font-weight: 500;
        transition: all 0.3s ease;
    }
    
    .current-week {
        font-size: 1rem;
        padding: 0.75rem 1rem;
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 25px;
        text-align: center;
        order: -1;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        font-weight: 500;
        letter-spacing: 0.5px;
    }
    
    /* Mobile day header styling */
    .day-header {
        padding: 1rem;
        margin-bottom: 1rem;
        text-align: center;
        border-radius: 12px;
    }
    
    .day-header h5 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
        font-weight: 600;
    }
    
    .day-header small {
        font-size: 0.85rem;
        display: block;
        margin-top: 0.25rem;
        opacity: 0.9;
    }
    
    .day-header .badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
        margin-top: 0.5rem;
        display: inline-block;
        border-radius: 15px;
    }
}

/* Extra small mobile devices */
@media (max-width: 576px) {
    .week-navigation {
        padding: 1rem;
        gap: 1.25rem;
    }
    
    .week-nav-btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.85rem;
        min-width: 120px;
        max-width: 180px;
    }
    
    .current-week {
        font-size: 0.9rem;
        padding: 0.65rem 0.85rem;
        max-width: 280px;
    }
    
    .day-header {
        padding: 0.85rem;
        margin-bottom: 0.85rem;
    }
    
    .day-header h5 {
        font-size: 1rem;
    }
    
    .day-header small {
        font-size: 0.8rem;
    }
    
    .day-header .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Hide release images on mobile */
@media (max-width: 768px) {
    .release-image {
        display: none !important;
    }
}

/* Account Status Module */
.account-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.account-info-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.account-info-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.account-info-item strong {
    color: #ffffff;
    font-weight: 600;
}

.account-info-item .text-muted {
    color: #a0aec0 !important;
}

.account-info-item .badge {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

.account-info-item .bg-light {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Supporter status badges */
.badge.bg-success {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14) !important;
    color: #000 !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, #17a2b8, #6f42c1) !important;
}

.badge.bg-secondary {
    background: linear-gradient(135deg, #6c757d, #495057) !important;
}

/* Expiry status colors */
.text-success {
    color: #28a745 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-danger {
    color: #dc3545 !important;
}

/* Account status info box */
.account-info-item .bg-light {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

/* Mobile responsive for account status */
@media (max-width: 768px) {
    .account-status-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .account-info-item {
        padding: 0.75rem;
    }
}

/* Recent Requests Module */
.recent-requests {
    max-height: 400px;
    overflow-y: auto;
}

.request-item {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color) !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.request-item:hover {
    background-color: var(--bg-card);
    border-color: var(--accent-primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-medium);
}

.request-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.request-item:hover::before {
    opacity: 1;
}

.request-poster img {
    transition: transform 0.3s ease;
}

.request-item:hover .request-poster img {
    transform: scale(1.05);
}

.request-item h6 {
    color: var(--text-primary);
    font-weight: 600;
    transition: color 0.3s ease;
}

.request-item:hover h6 {
    color: var(--accent-primary);
}

.request-item .text-muted {
    color: var(--text-muted) !important;
}

.request-item:hover .text-muted {
    color: var(--text-secondary) !important;
}

/* Status badges for requests */
.badge.bg-warning {
    background-color: var(--accent-warning) !important;
    color: #000 !important;
}

.badge.bg-success {
    background-color: var(--accent-success) !important;
    color: #fff !important;
}

.badge.bg-danger {
    background-color: var(--accent-danger) !important;
    color: #fff !important;
}

.badge.bg-info {
    background-color: var(--accent-info) !important;
    color: #fff !important;
}

.badge.bg-secondary {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border-color);
}

/* Mobile responsiveness for requests */
@media (max-width: 768px) {
    .request-item {
        padding: 0.75rem !important;
    }
    
    .request-poster {
        margin-right: 0.75rem !important;
    }
    
    .request-poster img,
    .request-poster div {
        width: 50px !important;
        height: 75px !important;
    }
    
    .request-item h6 {
        font-size: 0.9rem;
        max-width: 150px !important;
    }
    
    .recent-requests {
        max-height: 300px;
    }
}

/* News Preview Styling */
.news-preview {
    line-height: 1.6;
    white-space: pre-wrap; /* Preserve whitespace and line breaks */
    word-wrap: break-word; /* Break long words if needed */
}

.news-preview br {
    margin-bottom: 0.25rem; /* Add small spacing after line breaks */
}

