/* The Flock - Modern Design System */
/* Light, refreshing, professional church management platform */

/* ===== GLOBAL VARIABLES ===== */
:root {
    --primary-gradient: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
    --primary-color: #7c3aed;
    --secondary-color: #3b82f6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #06b6d4;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --muted-color: #64748b;
    --border-color: rgba(148, 163, 184, 0.2);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-6: 1.5rem;
}

/* ===== GLOBAL PERFORMANCE OPTIMIZATIONS ===== */
* {
    box-sizing: border-box;
}

body {
    overflow-x: auto;
}

.container-fluid, .container {
    overflow-x: visible;
    max-width: none;
}

/* ===== SPACING SYSTEM ===== */
.quick-actions-section {
    margin-bottom: var(--spacing-6);
    padding: 0;
}

.quick-actions-buttons {
    display: flex;
    gap: var(--spacing-3);
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    padding: 0;
}

/* ===== SIDEBAR STYLES ===== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

/* Desktop sidebar always visible */
@media (min-width: 768px) {
    .sidebar {
        transform: translateX(0);
        position: fixed;
    }
    
    .main-content {
        margin-left: 280px;
    }
}

/* Mobile layout */
@media (max-width: 767px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
}

/* Mobile top bar */
.mobile-topbar {
    display: none;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 767px) {
    .mobile-topbar {
        display: flex;
    }
    
    .main-content {
        margin-top: 60px;
    }
}

.mobile-sidebar-toggle {
    background: none;
    border: none;
    color: #374151;
    padding: 0.5rem;
    border-radius: 4px;
}

.mobile-brand {
    font-weight: 600;
    color: #000000;
    font-size: 1.1rem;
}

.mobile-user {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

@media (max-width: 767px) {
    .sidebar-overlay.active {
        display: block;
    }
}

/* Sidebar Header */
.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(10px);
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.org-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.brand-text-container {
    display: flex;
    flex-direction: column;
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff !important;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.brand-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1;
    font-weight: 500;
}

.sidebar-close {
    background: none;
    border: none;
    color: #374151;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.sidebar-close:hover {
    background: rgba(55, 65, 81, 0.1);
    color: #000000;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
}

.sidebar-brand:hover {
    color: white;
    text-decoration: none;
}

.brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
}

.brand-text h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.brand-text small {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Sidebar Content */
.sidebar-content {
    padding: 1rem 0;
    height: calc(100vh - 120px);
    overflow-y: auto;
}

/* Sidebar User Section */
.sidebar-user {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
}

.user-email {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
}

.user-action-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.user-action-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-menu-toggle {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.user-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Sidebar Menu */
.sidebar-menu {
    flex: 1;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section-title {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
}

.nav-link, .menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #1f2937 !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: calc(100% - 1rem);
    font-weight: 600;
    border-radius: 8px;
    margin: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.nav-link:hover, .menu-item:hover {
    background: rgba(139, 92, 246, 0.15) !important;
    color: #1f2937 !important;
    text-decoration: none !important;
    border-radius: 8px;
}

.nav-link.active, .menu-item.active {
    background: rgba(139, 92, 246, 0.25) !important;
    color: #1f2937 !important;
    border-radius: 8px;
}

.menu-item span {
    color: #1f2937 !important;
    font-weight: 600;
}

.menu-item i, .nav-link i {
    color: #374151 !important;
    color: white;
    font-weight: 600;
}

.nav-link i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* User Profile Section */
.user-profile {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.user-details h6 {
    margin: 0;
    font-size: 0.875rem;
    color: #000000;
    font-weight: 600;
}

.user-details small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
}


    background: var(--primary-gradient);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: white;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

/* Show toggle on desktop when hovering sidebar */
@media (min-width: 992px) {
    .sidebar:hover .sidebar-toggle,
    .sidebar-toggle:focus {
        display: flex;
        opacity: 1;
    }

    .sidebar-toggle:hover {
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
    }
}

/* Mobile toggle button */
.mobile-sidebar-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: var(--primary-gradient);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    color: white;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 992px) {
    .mobile-sidebar-toggle {
        display: none;
    }
}

/* Desktop sidebar hide functionality */
@media (min-width: 992px) {
    .sidebar-hidden .sidebar {
        transform: translateX(-100%);
    }

    .sidebar-hidden #main-content {
        margin-left: 0;
        min-width: 100vw;
        overflow-x: auto;
    }

    /* Show toggle button when sidebar is hidden */
    .sidebar-hidden .sidebar-toggle {
        position: fixed !important;
        left: 15px !important;
        top: 50% !important;
        right: auto !important;
        transform: translateY(-50%) !important;
        opacity: 1 !important;
        display: flex !important;
        z-index: 1003 !important;
    }
}

/* Mobile Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

@media (min-width: 992px) {
    .sidebar {
        transform: translateX(0);
        position: fixed;
        left: 0;
        top: 0;
        width: 280px;
        height: 100vh;
        z-index: 1000;
    }
    
    body.sidebar-visible #main-content {
        margin-left: 280px;
        min-width: calc(100vw - 280px);
        overflow-x: auto;
    }
    
    body.sidebar-hidden #main-content {
        margin-left: 0;
        min-width: 100vw;
        overflow-x: auto;
    }
}

@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .sidebar-toggle {
        display: none !important;
    }
    
    .mobile-sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
    
    #main-content {
        padding: var(--spacing-4);
        padding-top: 80px;
        width: 100%;
        min-width: 320px;
        overflow-x: auto;
        margin-left: 0;
    }
}

/* ===== MODERN CARDS ===== */
.modern-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.modern-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.modern-card .card-header {
    background: linear-gradient(135deg, #ffffff 0%, var(--light-color) 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modern-card .card-header h2,
.modern-card .card-header h3,
.modern-card .card-header h4,
.modern-card .card-header h5,
.modern-card .card-header h6 {
    margin: 0;
    color: var(--dark-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modern-card .card-body {
    padding: 1.25rem;
}

/* Gradient Cards */
.gradient-card {
    background: var(--primary-gradient);
    color: white;
    border: none;
}

.gradient-card .card-header {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.gradient-card .card-header h2,
.gradient-card .card-header h3,
.gradient-card .card-header h4,
.gradient-card .card-header h5,
.gradient-card .card-header h6 {
    color: white;
}

/* Dashboard Widgets */
.dashboard-widget {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem 1.25rem;
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
    min-height: 100px;
}

.dashboard-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dashboard-widget:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.dashboard-widget:hover::before {
    opacity: 1;
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.widget-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.widget-icon.primary { background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); color: white; }
.widget-icon.success { background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%); color: white; }
.widget-icon.warning { background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%); color: white; }
.widget-icon.danger { background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%); color: white; }
.widget-icon.info { background: linear-gradient(135deg, var(--info-color) 0%, #0891b2 100%); color: white; }
.widget-icon.secondary { background: linear-gradient(135deg, var(--muted-color) 0%, #475569 100%); color: white; }

.widget-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--muted-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.widget-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.widget-subtitle {
    font-size: 0.875rem;
    color: var(--muted-color);
    margin: 0.75rem 0 0 0;
    line-height: 1.4;
}

/* Card link wrapper */
a.text-decoration-none:hover .dashboard-widget,
a.text-decoration-none:hover .modern-card {
    text-decoration: none;
}

/* Ensure text colors don't change on hover for cards */
a:hover .text-gray-800,
a:hover .widget-value {
    color: var(--dark-color) !important;
}

a:hover .text-muted,
a:hover .widget-subtitle {
    color: var(--muted-color) !important;
}

/* ===== MODERN NAVIGATION ===== */
.modern-navbar {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Force override Bootstrap navbar defaults with highest specificity */
nav.navbar.navbar-expand-lg.modern-navbar.fixed-top {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    background-color: transparent !important;
    border: none !important;
}

nav.navbar.modern-navbar .navbar-brand {
    color: #1e293b !important;
}

nav.navbar.modern-navbar .navbar-nav .nav-link {
    color: #64748b !important;
}

nav.navbar.modern-navbar .navbar-nav .nav-link:hover,
nav.navbar.modern-navbar .navbar-nav .nav-link:focus {
    color: #7c3aed !important;
}

nav.navbar.modern-navbar .navbar-toggler {
    border: none !important;
    color: #64748b !important;
    background: transparent !important;
    padding: 0.5rem !important;
    border-radius: 8px !important;
}

nav.navbar.modern-navbar .navbar-toggler:focus {
    box-shadow: none !important;
    outline: none !important;
}

nav.navbar.modern-navbar .navbar-toggler:hover {
    background: rgba(124, 58, 237, 0.1) !important;
}

nav.navbar.modern-navbar .navbar-toggler svg {
    stroke: #64748b !important;
    stroke-width: 2 !important;
}

/* Additional overrides for Bootstrap navbar classes */
.navbar-dark .navbar-brand,
.navbar-dark .navbar-nav .nav-link {
    color: #64748b !important;
}

.navbar-dark .navbar-toggler {
    border-color: transparent !important;
}

/* Force light navigation appearance */
.modern-navbar.navbar-dark {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

/* Modern Brand */
.modern-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #1e293b;
    font-weight: 700;
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.modern-navbar .navbar-brand:hover {
    color: #7c3aed;
    text-decoration: none;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.brand-text {
    letter-spacing: -0.025em;
}

/* Main Navigation */
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navbar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.navbar-nav .nav-link:hover {
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.1);
    text-decoration: none;
}

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle::after {
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.nav-dropdown .dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: white;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 0.5rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.nav-dropdown .dropdown-item:hover {
    background: rgba(124, 58, 237, 0.05);
    color: #7c3aed;
    text-decoration: none;
}

/* Right Side Actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Admin Indicator */
.admin-indicator .badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
    border: none;
}

/* Notification Button */
.notification-btn {
    position: relative;
    padding: 0.75rem;
    border-radius: 8px;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s ease;
}

.notification-btn:hover {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
    text-decoration: none;
}

.notification-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #ef4444;
    color: white;
    font-size: 0.625rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    color: #475569;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-btn:hover {
    border-color: #7c3aed;
    background: rgba(124, 58, 237, 0.05);
    color: #7c3aed;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
}

.user-name {
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 0.5rem 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: #64748b;
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    padding: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1020;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 0.25rem;
    transition: all 0.2s ease;
}

.mobile-nav-link:hover {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-nav.show {
        display: block;
    }
    
    .user-name {
        display: none;
    }
    
    .navbar-container {
        padding: 0 1rem;
    }
}

@media (max-width: 640px) {
    .brand-text {
        font-size: 1rem;
    }
    
    .navbar-actions {
        gap: 0.5rem;
    }
    
    .admin-indicator {
        display: none;
    }
}

:root {
    /* Brand Colors - Light and Refreshing */
    --primary-purple: #8b5cf6;
    --primary-purple-light: #a78bfa;
    --primary-purple-dark: #7c3aed;
    
    --secondary-blue: #06b6d4;
    --secondary-blue-light: #22d3ee;
    --secondary-blue-dark: #0891b2;
    
    --accent-green: #10b981;
    --accent-green-light: #34d399;
    --accent-green-dark: #059669;
    
    --accent-orange: #f59e0b;
    --accent-orange-light: #fbbf24;
    --accent-orange-dark: #d97706;
    
    /* Neutral Colors - Light and Airy */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Semantic Colors */
    --success: var(--accent-green);
    --warning: var(--accent-orange);
    --danger: #ef4444;
    --info: var(--secondary-blue);
    
    /* Typography */
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Layout Components */
.page-container {
    min-height: 100vh;
    background: var(--gray-50);
}

.page-header {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-purple-dark) 100%);
    color: white;
    padding: var(--space-10) var(--space-6);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-8);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.page-header h1 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--space-2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
}

.page-header p {
    font-size: var(--font-size-lg);
    opacity: 0.9;
    margin: 0;
}

/* Card Components */
.modern-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-bottom: var(--space-8);
    transition: all 0.3s ease;
}

.modern-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.card-header {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    padding: var(--space-6);
    border-bottom: 2px solid var(--gray-200);
}

.card-header h2 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--gray-700);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.card-body {
    padding: var(--space-6);
}

/* Table Components */
.modern-table-container {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-bottom: var(--space-8);
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
}

.modern-table thead {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
}

.modern-table th {
    padding: var(--space-5) var(--space-4);
    text-align: left;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: var(--font-size-xs);
    border-bottom: 2px solid var(--gray-200);
}

.modern-table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--gray-100);
}

.modern-table tbody tr:hover {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    transform: scale(1.002);
    box-shadow: var(--shadow-md);
}

.modern-table td {
    padding: var(--space-4);
    vertical-align: middle;
}

/* Button Components */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 500;
    font-family: var(--font-family);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple-dark));
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-blue), var(--secondary-blue-dark));
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-green-dark));
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-dark));
    color: white;
}

.btn-outline {
    background: var(--white);
    border: 2px solid var(--gray-300);
    color: var(--gray-700);
}

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

/* Badge Components */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple-dark));
    color: white;
}

.badge-secondary {
    background: linear-gradient(135deg, var(--secondary-blue), var(--secondary-blue-dark));
    color: white;
}

.badge-success {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-green-dark));
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-dark));
    color: white;
}

.badge-outline {
    background: rgba(var(--accent-green), 0.1);
    color: var(--accent-green-dark);
    border: 1px solid rgba(var(--accent-green), 0.2);
}

/* Organization Type Badges */
.org-type-head-church {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple-dark));
    color: white;
}

.org-type-kan {
    background: linear-gradient(135deg, var(--secondary-blue), var(--secondary-blue-dark));
    color: white;
}

.org-type-kac {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-green-dark));
    color: white;
}

.org-type-branch {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-dark));
    color: white;
}

/* Organization Row Borders */
.org-row-head-church {
    border-left: 4px solid var(--primary-purple);
}

.org-row-kan {
    border-left: 4px solid var(--secondary-blue);
}

.org-row-kac {
    border-left: 4px solid var(--accent-green);
}

.org-row-branch {
    border-left: 4px solid var(--accent-orange);
}

/* Form Components */
.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-2);
    font-size: var(--font-size-sm);
}

.form-control {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    transition: all 0.2s ease;
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Navigation */
.nav-modern {
    background: var(--white);
    box-shadow: var(--shadow-md);
    padding: var(--space-4) 0;
}

.nav-brand {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-purple);
    text-decoration: none;
}

.nav-link {
    color: var(--gray-600);
    text-decoration: none;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    font-weight: 500;
}

.nav-link:hover {
    background: var(--gray-100);
    color: var(--primary-purple);
    text-decoration: none;
}

.nav-link.active {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple-dark));
    color: white;
}

/* Dashboard Widgets */
.dashboard-widget {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: var(--space-6);
    transition: all 0.3s ease;
    height: 100%;
}

.dashboard-widget:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.widget-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.widget-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.widget-icon.primary {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple-dark));
    color: white;
}

.widget-icon.secondary {
    background: linear-gradient(135deg, var(--secondary-blue), var(--secondary-blue-dark));
    color: white;
}

.widget-icon.success {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-green-dark));
    color: white;
}

.widget-icon.warning {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-dark));
    color: white;
}

.widget-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--gray-700);
    margin: 0;
}

.widget-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.widget-subtitle {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin: 0;
}

/* Status Indicators */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: var(--space-2);
}

.status-dot.active {
    background: var(--accent-green);
}

.status-dot.inactive {
    background: var(--gray-400);
}

.status-dot.warning {
    background: var(--accent-orange);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.text-primary { color: var(--primary-purple); }
.text-secondary { color: var(--secondary-blue); }
.text-success { color: var(--accent-green); }
.text-warning { color: var(--accent-orange); }
.text-gray { color: var(--gray-600); }
.text-muted { color: var(--gray-500); }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.p-0 { padding: 0; }
.p-2 { padding: var(--space-2); }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

.d-flex { display: flex; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-none { display: none; }

.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }

.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        padding: var(--space-6) var(--space-4);
        text-align: center;
    }
    
    .page-header h1 {
        font-size: var(--font-size-2xl);
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .modern-table-container {
        overflow-x: auto;
    }
    
    .modern-table {
        min-width: 600px;
    }
    
    .card-body {
        padding: var(--space-4);
    }
    
    .dashboard-widget {
        padding: var(--space-4);
    }
}

/* Loading Animation - Text Only */
.loading-text {
    position: relative;
    color: var(--gray-600);
    font-weight: 500;
}

.loading-text::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary-purple);
    animation: loading-pulse 1.5s infinite;
}

@keyframes loading-pulse {
    0%, 80%, 100% {
        opacity: 0;
        transform: translateY(-50%) scale(0.5);
    }
    40% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

/* ===== NOTIFICATIONS ===== */
.notification-list {
    padding: 0;
}

.notification-item {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-5);
    border-bottom: 1px solid var(--gray-200);
    transition: all 0.2s ease;
    background: white;
}

.notification-item:hover {
    background: var(--gray-50);
}

.notification-item.unread {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.02) 0%, rgba(59, 130, 246, 0.02) 100%);
    border-left: 3px solid var(--primary-purple);
}

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

.notification-icon {
    flex-shrink: 0;
}

.notification-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 20px;
}

.notification-avatar-primary {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    color: var(--primary-purple);
}

.notification-avatar-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    color: var(--blue-600);
}

.notification-avatar-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(34, 197, 94, 0.1) 100%);
    color: var(--green-600);
}

.notification-avatar-secondary {
    background: var(--gray-100);
    color: var(--gray-500);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}

.notification-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
    line-height: 1.4;
}

.notification-message {
    color: var(--gray-600);
    margin: 0 0 var(--space-3) 0;
    line-height: 1.5;
    font-size: 0.875rem;
}

.notification-meta {
    margin-bottom: var(--space-3);
}

.notification-time {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    color: var(--gray-500);
    font-size: 0.8rem;
}

.notification-actions {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

/* Status badges for notifications */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.status-badge-primary {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    color: var(--primary-purple);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

/* Empty state for notifications */
.empty-state {
    text-align: center;
    padding: var(--space-12) var(--space-4);
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-4);
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
}

.empty-state-icon i {
    width: 40px;
    height: 40px;
}

.empty-state-title {
    color: var(--gray-600);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.empty-state-text {
    color: var(--gray-500);
    font-size: 0.875rem;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== QR CODE ICON STYLING ===== */
.qr-icon {
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.btn .qr-icon {
    color: currentColor;
}

.btn:hover .qr-icon {
    transform: scale(1.1);
}

.page-header .qr-icon {
    color: var(--primary-color);
}

/* QR Code specific hover effects */
.btn-outline-primary:hover .qr-icon,
.btn-info:hover .qr-icon {
    color: currentColor;
    stroke-width: 2.5;
}

/* QR Code in dashboard widgets */
.dashboard-widget .qr-icon {
    color: var(--primary-color);
    opacity: 0.8;
}

.dashboard-widget:hover .qr-icon {
    opacity: 1;
    transform: scale(1.05);
}

/* ===== ORGANIZATION BANNER ===== */
.organization-banner {
    background: var(--primary-gradient);
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Prevent all overflow issues globally */
* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

.container-fluid, .container {
    overflow-x: hidden;
    max-width: 100%;
}

.organization-banner-content {
    padding: 1.25rem;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 100%;
    box-sizing: border-box;
}

.organization-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.organization-logo-section {
    position: relative;
    flex-shrink: 0;
}

.organization-banner-logo {
    width: 45px;
    height: 45px;
    border-radius: var(--border-radius-sm);
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px;
    box-shadow: var(--shadow);
}

.organization-banner-logo-fallback {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.organization-text {
    flex: 1;
    min-width: 0;
}

.organization-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    min-width: 0;
}

.organization-name {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.organization-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.organization-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 500;
}

.stat-divider {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
}

.organization-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
}

.btn-banner-action {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.625rem 1rem;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-banner-action:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

.organization-banner-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="30" cy="30" r="2"/></g></svg>');
    z-index: 1;
}

/* Dashboard responsive adjustments */
.dashboard-widget {
    padding: 1rem !important;
    margin-bottom: 0.75rem !important;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.dashboard-widget .widget-value {
    font-size: 1.8rem !important;
    font-weight: 700;
    margin: 0.5rem 0;
}

.dashboard-widget .widget-title {
    font-size: 0.875rem !important;
    margin: 0;
}

.dashboard-widget .widget-subtitle {
    font-size: 0.75rem !important;
    margin: 0;
    opacity: 0.8;
}

.widget-icon {
    width: 28px !important;
    height: 28px !important;
}

/* Mobile organization banner */
@media (max-width: 768px) {
    .organization-banner-content {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .organization-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        width: 100%;
    }
    
    .organization-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.375rem;
    }
    
    .organization-name {
        font-size: 1.25rem;
    }
    
    .organization-stats {
        gap: 0.5rem;
    }
    
    .organization-actions {
        width: 100%;
        justify-content: flex-start;
        gap: 0.375rem;
    }
    
    .btn-banner-action {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .btn-banner-action span {
        display: none !important;
    }
    
    .quick-actions-section {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .dashboard-widget .widget-value {
        font-size: 1.5rem !important;
    }
    
    .dashboard-widget .widget-title {
        font-size: 0.8rem !important;
    }
}

/* Print Styles */
@media print {
    .page-header,
    .modern-card,
    .dashboard-widget {
        box-shadow: none;
        border: 1px solid var(--gray-300);
    }
    
    .btn {
        display: none;
    }
    
    .qr-icon {
        width: 14px !important;
        height: 14px !important;
    }
}