/* General Site Styles */

.bg-custom-primary {
    background-color: #00263D !important; /* Dark blue from new home page primary color */
}

/* Make navbar taller to accommodate vertical icon layout */
.navbar {
    padding: 0.75rem 0 !important;
    min-height: 80px;
}

/* Hide navbar-toggler on large screens, show only on small screens */
.navbar-toggler {
    display: none !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    padding: 0.25rem 0.5rem !important;
    background-color: transparent !important;
    border-radius: 0.25rem !important;
}

/* Show navbar-toggler only on small screens */
@media (max-width: 991.98px) {
    .navbar-toggler {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

.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.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    background-size: 100% !important;
    width: 1.5em !important;
    height: 1.5em !important;
}

/* Constrain navbar width to match main content */
.navbar .container {
    max-width: 1140px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

.navbar-brand {
    font-size: 1.1rem !important;
    padding: 0.5rem 0.75rem !important;
}

.navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    font-size: 0.8rem;
    transition: color 0.2s ease, background-color 0.2s ease;
    border-radius: 0.375rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 80px;
    gap: 0.25rem;
}

/* Style the icons in main nav links */
.navbar-nav .nav-link i {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
    margin-right: 0 !important; /* Remove horizontal margin since we're using flex column */
}

/* Style the text in main nav links */
.navbar-nav .nav-link {
    line-height: 1.2;
    font-weight: 500;
}

/* Simple color change hover effects for navbar links */
.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Dropdown toggle hover effects */
.navbar-nav .dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Simple dropdown menu styling */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-radius: 0.375rem;
    margin: 0.125rem 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-item:hover {
    background-color: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

/* Keep dropdown item icons small and to the left of text - override main nav styles */
.dropdown-menu .dropdown-item {
    flex-direction: row !important;
    align-items: center !important;
    text-align: left !important;
    min-width: auto !important;
    gap: 0.5rem !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.9rem !important;
    line-height: 1.2 !important;
    font-weight: 500 !important;
    display: flex !important;
}

.dropdown-menu .dropdown-item i {
    font-size: 1rem !important;
    margin-right: 0.5rem !important;
    margin-bottom: 0 !important;
    width: 1rem;
    text-align: center;
}

/* Ensure dropdown items don't inherit main nav icon styles */
.navbar-text .dropdown-menu .dropdown-item {
    flex-direction: row !important;
    align-items: center !important;
    text-align: left !important;
    min-width: auto !important;
    gap: 0.5rem !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.9rem !important;
    line-height: 1.2 !important;
    font-weight: 500 !important;
}

.navbar-text .dropdown-menu .dropdown-item i {
    font-size: 1rem !important;
    margin-right: 0.5rem !important;
    margin-bottom: 0 !important;
}

/* User menu and management dropdown - vertical layout like main nav */
.navbar-text .dropdown-toggle,
.navbar-text a {
    transition: background-color 0.2s ease, color 0.2s ease;
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 80px;
    gap: 0.25rem;
    font-size: 0.8rem;
    line-height: 1.2;
    font-weight: 500;
    vertical-align: top;
}

.navbar-text .dropdown-toggle:hover,
.navbar-text a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Make user menu icons bigger and positioned above text like main nav */
.navbar-text .dropdown-toggle i,
.navbar-text a i {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
    margin-right: 0 !important;
}

/* Specifically target the logout link to ensure vertical layout */
.navbar-text a[href*="logout"],
.navbar-text a[href="/logout/"],
.navbar-text a[href*="logout/"],
.navbar-text a.text-decoration-underline {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    min-width: 80px !important;
    gap: 0.25rem !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.8rem !important;
    line-height: 1.2 !important;
    font-weight: 500 !important;
    vertical-align: top !important;
}

.navbar-text a[href*="logout"] i,
.navbar-text a[href="/logout/"] i,
.navbar-text a[href*="logout/"] i,
.navbar-text a.text-decoration-underline i {
    font-size: 1.4rem !important;
    margin-bottom: 0.25rem !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    display: block !important;
}

/* Override Bootstrap me-1 class for logout icon */
.navbar-text a[href*="logout"] i.me-1,
.navbar-text a.text-decoration-underline i.me-1 {
    margin-right: 0 !important;
    margin-left: 0 !important;
    margin-bottom: 0.25rem !important;
}

/* Ensure all user menu containers are aligned */
.navbar-text .dropdown,
.navbar-text > a {
    display: inline-block;
    vertical-align: top;
}

/* Fix alignment for the navbar-text container */
.navbar-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/*
 * Navbar collapse is a flex row: [ul.navbar-nav][span.navbar-text].
 * With many nav links the ul wraps and becomes tall; align-items: center on
 * .navbar-collapse then vertically centers the whole navbar-text block next to
 * that tall ul — so Language / Login sit lower than items on the first nav row
 * (e.g. Support). Align this block to the top of the collapse so it lines up
 * with the first row of nav links. (Desktop only — leave mobile collapse alone.)
 */
@media (min-width: 992px) {
    /*
     * Bootstrap adds padding-y to .navbar-text equal to nav-link padding. Inner links
     * and buttons already use the same padding — so the right cluster was effectively
     * padded twice vs .navbar-nav > li > a (padding only on the anchor).
     */
    .navbar-expand-lg .navbar-collapse > .navbar-text {
        align-self: flex-start;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    /* One flex line with the nav list: top-align so wrapped nav rows don’t throw off Y */
    .navbar-expand-lg .navbar-collapse {
        align-items: flex-start;
    }
}

/* btn-sm + Bootstrap .btn padding beat .navbar-text .dropdown-toggle; match .navbar-nav .nav-link */
.navbar-text > .dropdown .btn.dropdown-toggle {
    padding: 0.75rem 1rem !important;
    font-size: 0.8rem !important;
    line-height: 1.2 !important;
    font-weight: 500 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.25rem !important;
    min-width: 80px;
    text-align: center;
}

.navbar-text > .dropdown .btn.dropdown-toggle i {
    font-size: 1.4rem !important;
    margin-bottom: 0.25rem !important;
    margin-right: 0 !important;
}

/* Badge simple hover effect */
.badge {
    transition: opacity 0.2s ease;
}

.badge:hover {
    opacity: 0.8;
}

/* Navbar brand simple hover effect */
.navbar-brand {
    transition: background-color 0.2s ease, color 0.2s ease;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem !important;
}

.navbar-brand:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Mobile responsive adjustments for vertical nav layout */
@media (max-width: 991.98px) {
    .navbar {
        min-height: 60px;
        padding: 0.5rem 0 !important;
    }
    
    .navbar-nav .nav-link {
        flex-direction: row;
        align-items: center;
        text-align: left;
        min-width: auto;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem !important;
        font-size: 0.9rem;
    }
    
    .navbar-nav .nav-link i {
        font-size: 1rem;
        margin-bottom: 0;
        margin-right: 0.5rem !important;
    }
    
    /* Adjust user menu for mobile - back to horizontal layout */
    .navbar-text .dropdown-toggle,
    .navbar-text a {
        flex-direction: row;
        align-items: center;
        text-align: left;
        min-width: auto;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .navbar-text .dropdown-toggle i,
    .navbar-text a i {
        font-size: 1rem;
        margin-bottom: 0;
        margin-right: 0.5rem !important;
    }
}

/* Custom Community Icon - Circular People Formation */
.community-icon-alt {
    position: relative;
    width: 1.4rem;
    height: 1.4rem;
    display: inline-block;
    margin-right: 0.25rem;
}

.community-icon-alt::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1.2rem;
    height: 1.2rem;
    background: 
        /* 6 interconnected people in circular formation */
        /* Person 1 - Top (12 o'clock) */
        radial-gradient(circle at 50% 8%, white 0.1rem, transparent 0.1rem),
        /* Person 2 - Top Right (2 o'clock) */
        radial-gradient(circle at 78% 22%, white 0.1rem, transparent 0.1rem),
        /* Person 3 - Bottom Right (4 o'clock) */
        radial-gradient(circle at 78% 78%, white 0.1rem, transparent 0.1rem),
        /* Person 4 - Bottom (6 o'clock) */
        radial-gradient(circle at 50% 92%, white 0.1rem, transparent 0.1rem),
        /* Person 5 - Bottom Left (8 o'clock) */
        radial-gradient(circle at 22% 78%, white 0.1rem, transparent 0.1rem),
        /* Person 6 - Top Left (10 o'clock) */
        radial-gradient(circle at 22% 22%, white 0.1rem, transparent 0.1rem);
}

/* Add connecting lines between people to show interconnection */
.community-icon-alt::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1.2rem;
    height: 1.2rem;
    background: 
        /* Connecting lines between adjacent people */
        linear-gradient(30deg, transparent 40%, white 40%, white 45%, transparent 45%),
        linear-gradient(90deg, transparent 40%, white 40%, white 45%, transparent 45%),
        linear-gradient(150deg, transparent 40%, white 40%, white 45%, transparent 45%),
        linear-gradient(210deg, transparent 40%, white 40%, white 45%, transparent 45%),
        linear-gradient(270deg, transparent 40%, white 40%, white 45%, transparent 45%),
        linear-gradient(330deg, transparent 40%, white 40%, white 45%, transparent 45%);
    opacity: 0.6;
}

/* Enhanced focus states for accessibility */
.navbar-nav .nav-link:focus,
.navbar-text .dropdown-toggle:focus,
.navbar-text a:focus,
.navbar-brand:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Remove the border-bottom from navbar */
.navbar {
    border-bottom: none !important;
}

/* Adjust container padding for better spacing */
.container.mt-4 {
    margin-top: 1rem !important;
}

/* Footer Styles */
.footer {
    background: hsl(var(--card));
    border-top: 1px solid hsl(var(--border));
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-brand-icon {
    width: 1.5rem;
    height: 1.5rem;
    background: var(--gradient-primary);
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: hsl(var(--foreground));
}

/* Ensure footer stays at bottom */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #212529;
}

/* Global text color override to prevent white text issues */
body * {
    color: inherit;
}

/* Ensure D3.js input elements have proper text color */
.range-box,
.range-box input,
.range-box-unit {
    color: #000 !important;
    background-color: #fff !important;
}

.container.mt-4 {
    flex: 1;
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0;
        margin-top: 2rem;
    }
    
    .footer .row {
        text-align: center;
    }
    
    .footer-brand {
        justify-content: center;
    }
}

/* Page Header Styles */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Enhanced button styling for page headers with purple background */
.page-header .btn-light {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    color: #495057 !important;
    font-weight: 600 !important;
    text-shadow: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease !important;
}

.page-header .btn-light:hover {
    background: rgba(255, 255, 255, 1) !important;
    border-color: rgba(255, 255, 255, 1) !important;
    color: #212529 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

.page-header .btn-light:focus {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    color: #495057 !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.5) !important;
}

.page-header h1 {
    color: white !important;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: rgba(255,255,255,0.9) !important;
    margin-bottom: 0;
}

/* Stat Cards */
.stat-card {
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255,255,255,0.3);
}

.stat-card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.stat-card-content {
    text-align: center;
}

.stat-card-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-card-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* New stat styles for Friends network style */
.stat-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: #007bff;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 1.5rem;
}

.stat-content h3 {
    margin: 0;
    font-weight: 700;
    color: #212529 !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.stat-content h3.stat-number {
    color: #212529 !important;
}

.stat-label {
    margin: 0;
    color: #495057 !important;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Ensure stat card text is always visible */
.stat-card .stat-content h3,
.stat-card .stat-content p {
    color: #212529 !important;
}

.stat-card .stat-label {
    color: #495057 !important;
}

/* Override any potential global text color issues */
.stat-card h3.stat-number {
    color: #212529 !important;
    font-weight: 700 !important;
}

.stat-card p.stat-label {
    color: #495057 !important;
    font-weight: 500 !important;
}

/* Force text colors for stat cards */
.stat-card .stat-content h3.stat-number,
.stat-card .stat-content p.stat-label {
    color: inherit !important;
}

.stat-card .stat-content h3.stat-number {
    color: #212529 !important;
}

.stat-card .stat-content p.stat-label {
    color: #495057 !important;
}

/* Additional specificity to override any conflicts */
.stat-card .stat-content h3.stat-number,
.stat-card .stat-content p.stat-label {
    color: #212529 !important;
}

.stat-card .stat-content p.stat-label {
    color: #495057 !important;
}

/* Use !important to ensure these styles take precedence */
.stat-card .stat-content h3.stat-number {
    color: #212529 !important;
    font-weight: 700 !important;
}

.stat-card .stat-content p.stat-label {
    color: #495057 !important;
    font-weight: 500 !important;
}

/* Final override to ensure stat card text is visible */
.stat-card .stat-content h3.stat-number,
.stat-card .stat-content p.stat-label {
    color: #212529 !important;
}

.stat-card .stat-content p.stat-label {
    color: #495057 !important;
}

/* Target the specific elements in the dashboard */
.stat-card .stat-content h3.stat-number {
    color: #212529 !important;
}

.stat-card .stat-content p.stat-label {
    color: #495057 !important;
}

/* Ensure all text in stat cards is visible */
.stat-card,
.stat-card * {
    color: inherit;
}

.stat-card .stat-content h3.stat-number {
    color: #212529 !important;
}

.stat-card .stat-content p.stat-label {
    color: #495057 !important;
}

/* Override any potential global white text */
.stat-card .stat-content h3.stat-number {
    color: #212529 !important;
    font-weight: 700 !important;
}

.stat-card .stat-content p.stat-label {
    color: #495057 !important;
    font-weight: 500 !important;
}

/* Most specific selector to ensure text is visible */
.stat-card .stat-content h3.stat-number,
.stat-card .stat-content p.stat-label {
    color: #212529 !important;
}

.stat-card .stat-content p.stat-label {
    color: #495057 !important;
}

/* Final override with maximum specificity */
.stat-card .stat-content h3.stat-number {
    color: #212529 !important;
    font-weight: 700 !important;
}

.stat-card .stat-content p.stat-label {
    color: #495057 !important;
    font-weight: 500 !important;
}

/* Ensure stat card text is always visible regardless of other CSS */
.stat-card .stat-content h3.stat-number {
    color: #212529 !important;
    font-weight: 700 !important;
    text-shadow: none !important;
}

.stat-card .stat-content p.stat-label {
    color: #495057 !important;
    font-weight: 500 !important;
    text-shadow: none !important;
}

/* Remove any potential text shadows that might affect visibility */
.stat-card .stat-content h3.stat-number,
.stat-card .stat-content p.stat-label {
    text-shadow: none !important;
}

/* Final comprehensive override for stat card text visibility */
.stat-card .stat-content h3.stat-number {
    color: #212529 !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    background: transparent !important;
}

.stat-card .stat-content p.stat-label {
    color: #495057 !important;
    font-weight: 500 !important;
    text-shadow: none !important;
    background: transparent !important;
}

/* Ensure no other CSS can override these rules */
.stat-card .stat-content h3.stat-number,
.stat-card .stat-content p.stat-label {
    color: #212529 !important;
}

.stat-card .stat-content p.stat-label {
    color: #495057 !important;
}

/* Maximum specificity override for stat card text */
.stat-card .stat-content h3.stat-number {
    color: #212529 !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    background: transparent !important;
}

.stat-card .stat-content p.stat-label {
    color: #495057 !important;
    font-weight: 500 !important;
    text-shadow: none !important;
    background: transparent !important;
}

/* Final override to ensure text is visible */
.stat-card .stat-content h3.stat-number {
    color: #212529 !important;
}

.stat-card .stat-content p.stat-label {
    color: #495057 !important;
}

/* Ultimate override for stat card text visibility */
.stat-card .stat-content h3.stat-number {
    color: #212529 !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    background: transparent !important;
}

.stat-card .stat-content p.stat-label {
    color: #495057 !important;
    font-weight: 500 !important;
    text-shadow: none !important;
    background: transparent !important;
}

/* Ensure stat card text is always visible */
.stat-card .stat-content h3.stat-number,
.stat-card .stat-content p.stat-label {
    color: #212529 !important;
}

.stat-card .stat-content p.stat-label {
    color: #495057 !important;
}

/* Content Cards */
.content-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 2rem;
}

.content-card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.content-card-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #495057;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
}

.empty-icon {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1.5rem;
}

.empty-state h5 {
    color: #6c757d;
    margin-bottom: 1rem;
    font-weight: 600;
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Welcome Section */
.welcome-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.welcome-section h1 {
    color: white !important;
    margin-bottom: 0.5rem;
}

.welcome-section p {
    color: rgba(255,255,255,0.9) !important;
    margin-bottom: 0;
}

.quick-stats {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 0.5rem;
    backdrop-filter: blur(10px);
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: white;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
    color: white;
}

/* Ensure dashboard points display has white text */
.quick-stats .stat-item .stat-label {
    color: white !important;
    opacity: 0.9;
}

/* Enhanced Table Styles */
.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: #495057;
    background: #f8f9fa;
    padding: 1rem 0.75rem;
}

.table td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.table-hover tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.05);
    transform: scale(1.01);
    transition: all 0.2s ease;
}

/* Badge Enhancements */
.badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
}

/* Button Enhancements */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Avatar Styles */
.avatar {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal Enhancements */
.modal-content {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal-header {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 1.5rem;
}

/* Form Enhancements */
.form-control {
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.input-group-text {
    border-radius: 0.5rem 0 0 0.5rem;
    border: 1px solid #dee2e6;
    background: #f8f9fa;
}

/* Alert Enhancements */
.alert {
    border-radius: 0.5rem;
    border: none;
    padding: 1rem 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        padding: 1.5rem;
        text-align: center;
    }
    
    .page-header .col-md-4 {
        text-align: center !important;
        margin-top: 1rem;
    }
    
    .content-card-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .header-actions {
        justify-content: center;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .btn-group .btn {
        border-radius: 0.25rem !important;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

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

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

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Announcement Email Status Styles */
.announcement-meta .meta-item.text-success {
    color: #198754 !important;
    font-weight: 500;
}

.announcement-meta .meta-item.text-success i {
    color: #198754;
}

.announcement-meta .meta-item.text-success small {
    color: #6c757d;
    font-weight: normal;
}

/* Email sending option styling */
.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.form-check-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
} 

/* Tournament Prize Styles */
.prizes-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid #dee2e6;
}

.prize-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.prize-item:last-child {
    margin-bottom: 0;
}

.prize-item small {
    color: #495057;
    font-weight: 500;
}

.prize-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prize-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.prize-header {
    padding: 0.75rem;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
}

.prize-content {
    padding: 1rem;
    text-align: center;
}

.prize-content p {
    color: #495057;
    font-weight: 500;
    margin: 0;
}

/* Professional Achievement Recognition Display */
.prizes-highlight {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 0.75rem;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.prizes-header h6 {
    color: #495057;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.75rem;
}

.prizes-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.prize-highlight-item {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 0.5rem;
    padding: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 3px solid transparent;
    border: 1px solid #e9ecef;
}

.prize-highlight-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.prize-highlight-item.first-place {
    border-left-color: #007bff;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
}

.prize-highlight-item.second-place {
    border-left-color: #6c757d;
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
}

.prize-highlight-item.third-place {
    border-left-color: #fd7e14;
    background: linear-gradient(135deg, rgba(253, 126, 20, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
}

.prize-medal {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.prize-content {
    flex: 1;
}

.prize-rank {
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.prize-rank:after {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: #007bff;
    margin-top: 0.25rem;
}

.first-place .prize-rank {
    color: #007bff;
}

.second-place .prize-rank {
    color: #6c757d;
}

.third-place .prize-rank {
    color: #fd7e14;
}

.prize-description {
    font-size: 0.875rem;
    color: #495057;
    font-weight: 500;
    line-height: 1.3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .prizes-grid {
        gap: 0.375rem;
    }
    
    .prize-highlight-item {
        padding: 0.5rem;
    }
    
    .prize-medal {
        font-size: 1.25rem;
        margin-right: 0.5rem;
    }
    
    .prize-description {
        font-size: 0.8rem;
    }
}

/* Professional Achievement Motivation Section */
.prize-motivation-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #dee2e6;
}

.prize-motivation-section .content-card {
    background: transparent;
    border: none;
    box-shadow: none;
}

.prize-motivation-section .content-card-body {
    background: white;
    margin: 0.5rem;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.motivation-content {
    max-width: 600px;
    margin: 0 auto;
}

.motivation-icon {
    opacity: 0.9;
}

.motivation-title {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
}

.motivation-text {
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.motivation-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #495057;
}

.feature-item i {
    font-size: 1.2rem;
}

/* Responsive adjustments for motivation section */
@media (max-width: 768px) {
    .prize-motivation-section .content-card-body {
        padding: 1.5rem;
    }
    
    .motivation-title {
        font-size: 1.5rem;
    }
    
    .motivation-text {
        font-size: 1rem;
    }
    
    .motivation-features {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
}

/* Practice Test Button - Enhanced Visibility */
.btn-outline-primary.btn-lg {
    background: linear-gradient(135deg, #6f42c1 0%, #8e44ad 100%);
    border: 2px solid #6f42c1;
    color: white !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary.btn-lg:hover {
    background: linear-gradient(135deg, #5a32a3 0%, #7d3c98 100%);
    border-color: #5a32a3;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.3);
}

.btn-outline-primary.btn-lg:focus {
    background: linear-gradient(135deg, #6f42c1 0%, #8e44ad 100%);
    border-color: #6f42c1;
    color: white !important;
    box-shadow: 0 0 0 0.25rem rgba(111, 66, 193, 0.25);
}

/* Enhanced Join Button for Tournaments with Prizes */
.btn-warning.btn-lg {
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
    border: none;
    color: #000;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.btn-warning.btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.6);
    color: #000;
}

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

.btn-warning.btn-lg:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 193, 7, 0.4);
}

/* Tournament Results - Professional Recognition Display */
.prizes-display {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.prize-item {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 0.5rem;
    padding: 1rem;
    border-left: 3px solid transparent;
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prize-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.prize-item.first-place {
    border-left-color: #007bff;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
}

.prize-item.second-place {
    border-left-color: #6c757d;
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
}

.prize-item.third-place {
    border-left-color: #fd7e14;
    background: linear-gradient(135deg, rgba(253, 126, 20, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
}

.prize-medal {
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.prize-content {
    flex: 1;
}

.prize-rank {
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.prize-description {
    font-size: 0.875rem;
    color: #495057;
    font-weight: 500;
}

/* User Ranking Section */
.ranking-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0.75rem;
    padding: 1.5rem;
    color: #495057;
    text-align: center;
    border: 1px solid #dee2e6;
}

.ranking-position {
    margin-bottom: 1rem;
}

.ranking-number {
    font-size: 3rem;
    font-weight: 700;
    display: block;
    color: #007bff;
}

.ranking-label {
    font-size: 1rem;
    color: #6c757d;
}

.prize-won-badge {
    background: rgba(0, 123, 255, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
    font-weight: 600;
    color: #007bff;
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.no-prize-message {
    background: rgba(108, 117, 125, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
    font-weight: 500;
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.2);
}

/* Winners Grid */
.winners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.winner-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid transparent;
}

.winner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.winner-card.first-place {
    border-color: #007bff;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
}

.winner-card.second-place {
    border-color: #6c757d;
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
}

.winner-card.third-place {
    border-color: #fd7e14;
    background: linear-gradient(135deg, rgba(253, 126, 20, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
}

.winner-position {
    text-align: center;
    margin-bottom: 1rem;
}

.position-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.875rem;
}

.position-badge.first {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
}

.position-badge.second {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: #fff;
}

.position-badge.third {
    background: linear-gradient(135deg, #fd7e14, #e55a00);
    color: #fff;
}

.winner-info {
    text-align: center;
}

.winner-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #495057;
}

.winner-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.winner-prize {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(0, 123, 255, 0.05) 100%);
    border-radius: 0.5rem;
    padding: 0.5rem;
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.winner-prize small {
    color: #007bff;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .winners-grid {
        grid-template-columns: 1fr;
    }
    
    .ranking-number {
        font-size: 2.5rem;
    }
    
    .winner-card {
        padding: 1rem;
    }
    
    .winner-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Quick Action Cards - Enhanced Design */
.quick-action-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    height: 100%;
    min-height: 120px;
}

.quick-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.quick-action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
    text-decoration: none;
    color: inherit;
}

.quick-action-card:hover::before {
    transform: scaleX(1);
}

.quick-action-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.25rem;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.quick-action-card:hover .quick-action-icon {
    transform: scale(1.1);
}

.quick-action-content {
    flex: 1;
    margin-right: 1rem;
}

.quick-action-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #212529;
    line-height: 1.3;
}

.quick-action-description {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
}

.quick-action-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.quick-action-card:hover .quick-action-arrow {
    background: #007bff;
    color: white;
    transform: translateX(4px);
}

/* Color variants for quick action cards */
.quick-action-primary .quick-action-icon {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.quick-action-primary::before {
    background: linear-gradient(90deg, #007bff, #0056b3);
}

.quick-action-primary:hover {
    border-color: #007bff;
}

.quick-action-primary:hover .quick-action-arrow {
    background: #007bff;
}

.quick-action-success .quick-action-icon {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.quick-action-success::before {
    background: linear-gradient(90deg, #28a745, #1e7e34);
}

.quick-action-success:hover {
    border-color: #28a745;
}

.quick-action-success:hover .quick-action-arrow {
    background: #28a745;
}

.quick-action-warning .quick-action-icon {
    background: linear-gradient(135deg, #ffc107, #e0a800);
}

.quick-action-warning::before {
    background: linear-gradient(90deg, #ffc107, #e0a800);
}

.quick-action-warning:hover {
    border-color: #ffc107;
}

.quick-action-warning:hover .quick-action-arrow {
    background: #ffc107;
    color: #212529;
}

.quick-action-info .quick-action-icon {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.quick-action-info::before {
    background: linear-gradient(90deg, #17a2b8, #138496);
}

.quick-action-info:hover {
    border-color: #17a2b8;
}

.quick-action-info:hover .quick-action-arrow {
    background: #17a2b8;
}

.quick-action-secondary .quick-action-icon {
    background: linear-gradient(135deg, #6c757d, #545b62);
}

.quick-action-secondary::before {
    background: linear-gradient(90deg, #6c757d, #545b62);
}

.quick-action-secondary:hover {
    border-color: #6c757d;
}

.quick-action-secondary:hover .quick-action-arrow {
    background: #6c757d;
}

.quick-action-dark .quick-action-icon {
    background: linear-gradient(135deg, #343a40, #23272b);
}

.quick-action-dark::before {
    background: linear-gradient(90deg, #343a40, #23272b);
}

.quick-action-dark:hover {
    border-color: #343a40;
}

.quick-action-dark:hover .quick-action-arrow {
    background: #343a40;
}

/* Responsive adjustments for quick action cards */
@media (max-width: 768px) {
    .quick-action-card {
        padding: 1rem;
        min-height: 100px;
    }
    
    .quick-action-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-right: 1rem;
    }
    
    .quick-action-title {
        font-size: 1rem;
    }
    
    .quick-action-description {
        font-size: 0.8rem;
    }
    
    .quick-action-arrow {
        width: 35px;
        height: 35px;
        font-size: 0.875rem;
    }
    
    .quick-action-content {
        margin-right: 0.75rem;
    }
}

@media (max-width: 576px) {
    .quick-action-card {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
        min-height: 140px;
    }
    
    .quick-action-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .quick-action-content {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .quick-action-arrow {
        position: absolute;
        bottom: 1rem;
        right: 1rem;
    }
}

/* Board Card Styles */
.board-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    padding: 2rem 1.75rem 1.5rem 1.75rem;
}

.board-card .board-name {
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
}

.board-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.board-card.pinned {
    border: 1px solid #ffc107;
}

.board-pin-indicator {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #ffc107;
    color: #212529;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    box-shadow: 0 1px 3px rgba(255, 193, 7, 0.3);
    z-index: 10;
}

.board-header {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.board-icon {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.board-title-section {
    flex: 1;
}

.board-title {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
}

.board-title a {
    color: inherit;
    text-decoration: none;
}

.board-title a:hover {
    color: #667eea;
}

.board-description {
    padding: 0.75rem;
    margin: 0;
    color: #6c757d;
    line-height: 1.4;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 0.8rem;
}

.board-stats {
    padding: 0.75rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.board-stats .stat-item {
    text-align: center;
}

.board-stats .stat-number {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.125rem;
}

.board-stats .stat-label {
    font-size: 0.7rem;
    color: #6c757d;
    margin: 0;
}

.board-footer {
    padding: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.board-creator {
    font-size: 0.7rem;
}

.board-actions {
    display: flex;
    gap: 0.25rem;
}

.board-actions .btn {
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem;
}

/* Responsive board grid */
@media (max-width: 768px) {
    .board-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.375rem;
    }
    
    .board-footer {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .board-actions {
        justify-content: center;
    }
    
    .board-header,
    .board-description,
    .board-stats,
    .board-footer {
        padding: 0.5rem;
    }
    
    .board-icon {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.75rem;
    }
    
    .board-title {
        font-size: 0.9rem;
    }
    
    .board-description {
        font-size: 0.75rem;
    }
}

/* Getting Started Popup Styles - Compact Version */
#gettingStartedModal .modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    max-height: 90vh;
    overflow-y: auto;
}

#gettingStartedModal .modal-header {
    border-radius: 12px 12px 0 0;
    border-bottom: none;
    padding: 1rem 1.25rem;
}

#gettingStartedModal .modal-body {
    padding: 1.25rem;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

#gettingStartedModal .modal-footer {
    border-top: none;
    padding: 1rem 1.25rem;
    background-color: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

#gettingStartedModal .card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border-radius: 8px;
    border-width: 2px;
    margin-bottom: 0.75rem;
}

#gettingStartedModal .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

#gettingStartedModal .card-body {
    padding: 1rem;
}

#gettingStartedModal .card-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #2c3e50;
    font-size: 1.1rem;
}

#gettingStartedModal .card-text {
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.4;
    font-size: 0.9rem;
}

#gettingStartedModal .card-text.lead {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

#gettingStartedModal .card-text.small {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

#gettingStartedModal .btn {
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    font-size: 0.9rem;
}

#gettingStartedModal .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

#gettingStartedModal .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

#gettingStartedModal .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
}

#gettingStartedModal .alert {
    border-radius: 8px;
    border-left: 3px solid #ffc107;
    padding: 0.75rem 1rem;
    margin-bottom: 0;
}

#gettingStartedModal .alert-heading {
    color: #856404;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

#gettingStartedModal .alert ul {
    margin-bottom: 0;
}

#gettingStartedModal .alert li {
    margin-bottom: 0.25rem;
    color: #6c757d;
    font-size: 0.8rem;
}

#gettingStartedModal .modal-title {
    font-weight: 600;
    font-size: 1.25rem;
    margin: 0;
}

#gettingStartedModal .lead {
    color: #495057;
    font-weight: 400;
    font-size: 1rem;
    margin-bottom: 1rem;
}

#gettingStartedModal h6 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

#gettingStartedModal .text-muted {
    font-size: 0.75rem;
}

#gettingStartedModal .fa-4x {
    font-size: 2.5rem;
}

#gettingStartedModal .fa-2x {
    font-size: 1.25rem;
}

#gettingStartedModal .row {
    margin-bottom: 0.5rem;
}

#gettingStartedModal .row.g-3 {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
}

#gettingStartedModal .mb-3 {
    margin-bottom: 0.75rem !important;
}

#gettingStartedModal .mb-2 {
    margin-bottom: 0.5rem !important;
}

#gettingStartedModal .mt-3 {
    margin-top: 0.75rem !important;
}

#gettingStartedModal .me-2 {
    margin-right: 0.5rem !important;
}

#gettingStartedModal .me-3 {
    margin-right: 0.75rem !important;
}

#gettingStartedModal .me-1 {
    margin-right: 0.25rem !important;
}

/* Animation for modal appearance */
#gettingStartedModal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: scale(0.8);
}

#gettingStartedModal.show .modal-dialog {
    transform: scale(1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #gettingStartedModal .modal-dialog {
        margin: 0.5rem;
    }
    
    #gettingStartedModal .modal-body {
        padding: 1rem;
    }
    
    #gettingStartedModal .modal-header {
        padding: 0.75rem 1rem;
    }
    
    #gettingStartedModal .modal-footer {
        padding: 0.75rem 1rem;
    }
    
    #gettingStartedModal .card-body {
        padding: 0.75rem;
    }
    
    #gettingStartedModal .fa-4x {
        font-size: 2rem !important;
    }
    
    #gettingStartedModal .fa-2x {
        font-size: 1rem !important;
    }
    
    #gettingStartedModal .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    #gettingStartedModal .card-title {
        font-size: 1rem;
    }
    
    #gettingStartedModal .modal-title {
        font-size: 1.1rem;
    }
}