/**
 * Golden Club - Main Stylesheet
 * Official Branding: "Building a golden future together"
 * 
 * @package GoldenClub
 * @version 2.0
 * @description Premium table banking system with unified Golden Club branding
 */

/* ===================================
   GOLDEN CLUB BRAND COLORS
   =================================== */
:root {
    /* Official Golden Club Brand Colors */
    --primary-navy: #1a2c54;
    --secondary-gold: #d4a948;
    --accent-red: #c41e3a;
    
    /* Extended Palette */
    --navy-dark: #0f1a33;
    --navy-light: #2a3d64;
    --gold-light: #e4c078;
    --gold-dark: #b89338;
    --red-light: #d43e5a;
    --red-dark: #a01628;
    
    /* Neutrals & Supporting Colors */
    --white: #ffffff;
    --light-gray: #f5f6f8;
    --border-gray: #e1e4e8;
    --text-dark: #2c3e50;
    --text-gray: #6c757d;
    --text-light: #95a5a6;
    
    /* Functional Colors */
    --success-green: #27ae60;
    --warning-orange: #f39c12;
    --danger-red: #e74c3c;
    --info-blue: #3498db;
    
    /* Layout */
    --sidebar-width: 260px;
    --topbar-height: 70px;
}

/* ===================================
   GOOGLE FONTS - MONTSERRAT
   =================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

/* ===================================
   GLOBAL STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--light-gray);
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

h1 { font-size: 32px; font-weight: 800; }
h2 { font-size: 24px; font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; }
h4 { font-size: 18px; font-weight: 600; }
h5 { font-size: 16px; font-weight: 600; }
h6 { font-size: 14px; font-weight: 600; }

/* ===================================
   LAYOUT STRUCTURE
   =================================== */
.admin-layout, .member-layout {
    display: flex;
    min-height: 100vh;
}

/* ===================================
   SIDEBAR STYLES - UNIFIED GOLDEN CLUB THEME
   =================================== */
/* Admin Sidebar */
.admin-sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--primary-navy) 0%, var(--navy-dark) 100%);
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    border-right: 3px solid var(--secondary-gold);
}

/* Member Sidebar */
.member-sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--primary-navy) 0%, var(--navy-dark) 100%);
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    border-right: 3px solid var(--secondary-gold);
}

.sidebar-header,
.admin-sidebar-header,
.member-sidebar-header {
    padding: 25px 20px;
    border-bottom: 2px solid var(--secondary-gold);
    background: rgba(212, 169, 72, 0.05);
}

.admin-sidebar-header h2,
.member-sidebar-header h3 {
    color: white;
    font-size: 18px;
    font-weight: 800;
    margin: 8px 0 4px 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.admin-sidebar-header p,
.member-sidebar-header p {
    color: var(--secondary-gold);
    font-size: 11px;
    margin: 0;
    font-style: italic;
    font-weight: 500;
}

.admin-logo-container,
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-logo {
    width: 45px;
    height: 45px;
    background: var(--secondary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(212, 169, 72, 0.3);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
}

.logo-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    color: #001F5C;
    border: 3px solid rgba(255, 215, 0, 0.3);
    position: relative;
}

.logo-icon::before {
    content: '👑';
    position: absolute;
    top: -8px;
    font-size: 20px;
}

/* New SVG Logo Styles */
.logo-icon.logo-new {
    background: transparent;
    border: none;
    padding: 0;
    overflow: visible;
}

.logo-icon.logo-new::before {
    display: none;
}

.logo-icon.logo-new svg {
    width: 100%;
    height: 100%;
    display: block;
}

.logo-text h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 2px 0;
    letter-spacing: 0.5px;
}

.logo-text p {
    font-size: 10px;
    opacity: 0.6;
    margin: 0;
    font-style: italic;
}

/* Navigation */
.sidebar-nav, .admin-nav, .member-nav {
    padding: 10px 0;
}

.nav-section, .admin-nav-section {
    margin-bottom: 5px;
}

.nav-section-title, .admin-nav-section-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--secondary-gold);
    padding: 15px 20px 8px 20px;
    margin-bottom: 0;
    font-weight: 700;
}

.sidebar-nav a,
.admin-nav a,
.member-nav a,
.admin-nav-item,
.member-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 13px;
    font-weight: 500;
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar-nav a:hover,
.admin-nav a:hover,
.member-nav a:hover,
.admin-nav-item:hover,
.member-nav-item:hover {
    background: rgba(212, 169, 72, 0.15);
    color: white;
    border-left-color: var(--secondary-gold);
}

.sidebar-nav a.active,
.admin-nav a.active,
.member-nav a.active,
.admin-nav-item.active,
.member-nav-item.active {
    background: linear-gradient(90deg, rgba(212, 169, 72, 0.2) 0%, rgba(212, 169, 72, 0.05) 100%);
    color: white;
    border-left-color: var(--secondary-gold);
    font-weight: 700;
}

.sidebar-nav a.active::after,
.admin-nav-item.active::after,
.member-nav-item.active::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 30px;
    background: var(--secondary-gold);
    border-radius: 4px 0 0 4px;
}

.sidebar-nav a i,
.admin-nav a i,
.member-nav a i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    color: var(--secondary-gold);
}

.nav-badge, .notification-badge {
    margin-left: auto;
    background: var(--accent-red);
    color: white;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(196, 30, 58, 0.3);
}

/* ===================================
   MAIN CONTENT AREA
   =================================== */
.admin-content, .member-main, .admin-main {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    background: var(--light-gray);
}

.main-content, .member-content, .admin-content {
    padding: 30px 35px;
}

/* ===================================
   TOP NAVBAR / TOPBAR
   =================================== */
.top-navbar, .topbar, .admin-top-bar, .member-top-bar {
    background: white;
    padding: 18px 35px;
    border-bottom: 3px solid var(--secondary-gold);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(26, 44, 84, 0.08);
}

.topbar-left, .admin-page-title, .member-greeting {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.topbar-left h2,
.admin-page-title h1,
.member-greeting h2 {
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    color: var(--primary-navy);
}

.admin-page-title p,
.member-greeting p {
    font-size: 13px;
    color: var(--text-gray);
    margin: 0;
}

.topbar-right, .admin-top-actions, .member-top-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.topbar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 500;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--primary-navy);
    cursor: pointer;
    font-size: 20px;
    padding: 8px;
    transition: all 0.3s;
}

.btn-icon:hover {
    background: rgba(212, 169, 72, 0.1);
    border-radius: 6px;
}

.page-badge {
    display: inline-block;
    background: #FF4D4F;
    color: white;
    font-size: 9px;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 10px;
}

.page-badge.admin {
    background: #FF4D4F;
}

.page-badge.member {
    background: #1890FF;
}

/* Search Bar */
.search-bar {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 10px 15px 10px 45px;
    border: 1px solid var(--gc-border);
    border-radius: 8px;
    font-size: 14px;
}

.search-bar i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gc-gray);
}

/* Top Navigation Right */
.top-nav-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.date-display {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gc-gray);
    font-size: 12px;
    padding: 8px 12px;
    background: var(--gc-light-gray);
    border-radius: 6px;
}

.notification-icon {
    position: relative;
    cursor: pointer;
    padding: 8px;
}

.notification-icon i {
    font-size: 18px;
    color: var(--gc-dark);
}

.notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
    background: #dc3545;
    border-radius: 50%;
    border: 2px solid white;
}

.notification-badge.count {
    width: auto;
    height: auto;
    min-width: 18px;
    padding: 2px 5px;
    font-size: 10px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* User Profile */
.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s;
}

.user-profile:hover {
    background: var(--gc-light-gray);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gc-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 13px;
    border: 2px solid var(--gc-light-blue);
}

.user-info h6 {
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    color: var(--gc-dark);
}

.user-info p {
    font-size: 11px;
    color: var(--gc-gray);
    margin: 0;
}

.user-profile i.fa-chevron-down {
    font-size: 12px;
    color: var(--gc-gray);
}

/* ===================================
   KPI / STAT CARDS - GOLDEN CLUB STYLE
   =================================== */
.stats-grid, .kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card-premium, .kpi-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 2px solid var(--border-gray);
    border-left: 4px solid var(--secondary-gold);
    transition: all 0.3s;
    position: relative;
    box-shadow: 0 2px 8px rgba(26, 44, 84, 0.06);
}

.stat-card-premium:hover, .kpi-card:hover {
    box-shadow: 0 8px 24px rgba(26, 44, 84, 0.12);
    transform: translateY(-4px);
    border-left-width: 6px;
}

.stat-header, .kpi-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.stat-icon, .kpi-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

/* Golden Club KPI Color Variants */
.stat-icon.blue, .kpi-icon.primary { 
    background: linear-gradient(135deg, rgba(26, 44, 84, 0.1) 0%, rgba(26, 44, 84, 0.05) 100%);
    color: var(--primary-navy);
    border: 2px solid rgba(26, 44, 84, 0.2);
}

.stat-icon.gold, .kpi-icon.gold { 
    background: linear-gradient(135deg, rgba(212, 169, 72, 0.15) 0%, rgba(212, 169, 72, 0.05) 100%);
    color: var(--secondary-gold);
    border: 2px solid rgba(212, 169, 72, 0.3);
}

.stat-icon.red, .kpi-icon.danger, .kpi-icon.warning { 
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.1) 0%, rgba(196, 30, 58, 0.05) 100%);
    color: var(--accent-red);
    border: 2px solid rgba(196, 30, 58, 0.2);
}

.stat-icon.green, .kpi-icon.success { 
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1) 0%, rgba(39, 174, 96, 0.05) 100%);
    color: var(--success-green);
    border: 2px solid rgba(39, 174, 96, 0.2);
}

.stat-label, .kpi-label {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value, .kpi-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-navy);
    margin-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
}

.stat-change, .kpi-change {
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-change.positive, .kpi-change.positive { color: var(--success-green); }
.stat-change.negative, .kpi-change.negative { color: var(--accent-red); }
.stat-change.neutral { color: var(--text-gray); }

/* ===================================
   QUICK ACTIONS
   =================================== */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 25px;
}

.action-button {
    background: white;
    border: 1px solid var(--gc-border);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--gc-dark);
}

.action-button:hover {
    border-color: var(--gc-blue);
    box-shadow: 0 4px 12px rgba(0,82,204,0.1);
    transform: translateY(-2px);
    color: var(--gc-dark);
}

.action-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.action-icon.purple { background: #F9F0FF; color: #722ED1; }

.action-text h6 {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--gc-dark);
}

.action-text p {
    font-size: 11px;
    color: var(--gc-gray);
    margin: 0;
}

/* ===================================
   DASHBOARD CARDS - UNIFIED GOLDEN CLUB STYLE
   =================================== */
.dashboard-card-premium, .content-card {
    background: white;
    border-radius: 12px;
    border: 2px solid var(--border-gray);
    border-top: 4px solid var(--secondary-gold);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(26, 44, 84, 0.06);
    transition: all 0.3s;
}

.dashboard-card-premium:hover, .content-card:hover {
    box-shadow: 0 6px 16px rgba(26, 44, 84, 0.1);
}

.card-header-premium, .card-header {
    padding: 20px 24px;
    border-bottom: 2px solid var(--border-gray);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(212, 169, 72, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
}

.card-header-premium h5, .card-header h3, .card-header h5 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: var(--primary-navy);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header-premium h5 i, .card-header h3 i {
    color: var(--secondary-gold);
}

.card-body-premium, .card-body {
    padding: 24px;
}

/* ===================================
   LOAN DETAIL CARD
   =================================== */
.loan-detail-card {
    background: linear-gradient(135deg, var(--gc-blue) 0%, #0066FF 100%);
    color: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.loan-amount {
    font-size: 32px;
    font-weight: 700;
    margin: 10px 0;
}

.loan-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.loan-detail-item h6 {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.loan-detail-item p {
    font-size: 16px;
    font-weight: 600;
}

.progress-bar {
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 15px;
}

.progress-bar-fill {
    height: 100%;
    background: white;
}

.btn-premium {
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
    margin-top: 15px;
}

.btn-premium.primary {
    background: white;
    color: var(--gc-blue);
}

/* ===================================
   ACTIVITY FEED
   =================================== */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
}

.activity-content h6 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.activity-content p {
    font-size: 12px;
    color: var(--gc-gray);
    margin: 0;
}

.activity-amount {
    margin-left: auto;
    font-weight: 600;
}

.activity-amount.positive { color: var(--gc-success); }
.activity-amount.negative { color: var(--gc-red); }

/* ===================================
   BUTTONS - GOLDEN CLUB STYLE
   =================================== */
.btn, .btn-premium {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
}

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

.btn-primary:hover {
    background: var(--navy-dark);
    border-color: var(--navy-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 44, 84, 0.3);
}

.btn-success {
    background: var(--success-green);
    color: white;
    border-color: var(--success-green);
}

.btn-success:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3);
}

.btn-danger {
    background: var(--accent-red);
    color: white;
    border-color: var(--accent-red);
}

.btn-danger:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.3);
}

.btn-warning {
    background: var(--warning-orange);
    color: white;
    border-color: var(--warning-orange);
}

.btn-secondary {
    background: var(--text-gray);
    color: white;
    border-color: var(--text-gray);
}

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

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

.btn-gold {
    background: var(--secondary-gold);
    color: var(--primary-navy);
    border-color: var(--secondary-gold);
    font-weight: 800;
}

.btn-gold:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 169, 72, 0.4);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
    display: flex;
}

/* ===================================
   BADGES - GOLDEN CLUB STYLE
   =================================== */
.badge {
    display: inline-block;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-pending { 
    background: var(--warning-orange);
    color: white;
}

.badge-approved { 
    background: var(--success-green);
    color: white;
}

.badge-rejected { 
    background: var(--accent-red);
    color: white;
}

.badge-completed { 
    background: var(--primary-navy);
    color: white;
}

.badge-active {
    background: var(--info-blue);
    color: white;
}

.badge-danger {
    background: var(--accent-red);
    color: white;
}

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

.bg-warning {
    background-color: var(--warning-orange) !important;
    color: #000 !important;
}

/* ===================================
   ALERTS
   =================================== */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    border: 1px solid transparent;
}

.alert-info {
    background: var(--gc-light-blue);
    color: var(--gc-blue);
    border-color: rgba(0, 82, 204, 0.2);
}

.alert-danger {
    background: #FFE8E8;
    color: var(--gc-red);
    border-color: rgba(220, 53, 69, 0.2);
}

.alert-success {
    background: #D5F6EF;
    color: var(--gc-success);
    border-color: rgba(0, 186, 136, 0.2);
}

.alert-warning {
    background: #FFF7E6;
    color: var(--gc-warning);
    border-color: rgba(255, 184, 0, 0.2);
}

/* ===================================
   TABLES - GOLDEN CLUB STYLE
   =================================== */
.table, .data-table {
    width: 100%;
    margin-bottom: 1rem;
    color: var(--text-dark);
    background-color: white;
    border-collapse: separate;
    border-spacing: 0;
}

.table th, .data-table th {
    font-weight: 700;
    color: var(--primary-navy);
    background: linear-gradient(135deg, rgba(212, 169, 72, 0.1) 0%, rgba(212, 169, 72, 0.05) 100%);
    padding: 14px 12px;
    border-bottom: 2px solid var(--secondary-gold);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.table td, .data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-gray);
    color: var(--text-dark);
    font-size: 13px;
}

.table tbody tr, .data-table tbody tr {
    transition: all 0.2s;
}

.table-hover tbody tr:hover, .data-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(212, 169, 72, 0.05) 0%, transparent 100%);
    border-left: 3px solid var(--secondary-gold);
}

.table-responsive {
    overflow-x: auto;
    border-radius: 8px;
}

/* ===================================
   FORMS - GOLDEN CLUB STYLE
   =================================== */
.form-control {
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s;
    width: 100%;
    color: var(--text-dark);
    font-family: 'Montserrat', sans-serif;
}

.form-control:focus {
    border-color: var(--secondary-gold);
    box-shadow: 0 0 0 4px rgba(212, 169, 72, 0.1);
    outline: none;
}

.form-label {
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 8px;
    font-size: 13px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group {
    margin-bottom: 20px;
}

.mb-3, .mb-4 {
    margin-bottom: 20px;
}

/* ===================================
   UTILITIES
   =================================== */
.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

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

.text-muted {
    color: var(--gc-gray) !important;
}

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

.text-danger {
    color: var(--gc-red) !important;
}

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

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

a {
    text-decoration: none;
    color: var(--gc-blue);
}

a:hover {
    color: var(--gc-dark-blue);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}

.col-md-4, .col-md-8, .col-md-3 {
    padding: 0 12px;
}

.col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
    .col-md-3, .col-md-4, .col-md-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .admin-sidebar,
    .member-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .admin-sidebar.show,
    .member-sidebar.show {
        transform: translateX(0);
    }

    .admin-content {
        margin-left: 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .top-navbar {
        padding: 12px 15px;
    }

    .welcome-section h2 {
        font-size: 16px;
    }

    .page-badge {
        display: block;
        margin-top: 5px;
        margin-left: 0;
    }

    .date-display {
        display: none;
    }

    .user-info {
        display: none;
    }

    .stat-value {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        gap: 12px;
    }

    .stat-card-premium {
        padding: 15px;
    }

    .main-content {
        padding: 20px 15px;
    }
    
    /* Login page responsive */
    .login-body {
        padding: 30px 20px;
    }
    
    .login-header {
        padding: 30px 20px;
    }
    
    .login-header h2 {
        font-size: 24px;
    }
    
    .login-container {
        padding: 10px;
    }
}

/* ===================================
   DROPDOWN MENU STYLES
   =================================== */
.dropdown-menu {
    border: 1px solid var(--gc-border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 8px 0;
}

.dropdown-item {
    padding: 10px 20px;
    font-size: 13px;
    color: var(--gc-dark);
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: var(--gc-light-gray);
    color: var(--gc-blue);
}

.dropdown-item i {
    margin-right: 10px;
    width: 16px;
}

.dropdown-divider {
    border-top: 1px solid var(--gc-border);
    margin: 8px 0;
}

/* ===================================
   LOGIN PAGE STYLES
   =================================== */
body.login-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--gc-blue) 0%, #0066FF 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gc-blue) 0%, var(--gc-red) 100%);
    padding: 20px;
    width: 100%;
    max-width: 450px;
}

.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    max-width: 450px;
    width: 100%;
}

.login-header {
    background: linear-gradient(135deg, var(--gc-dark-blue) 0%, var(--gc-blue) 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.logo-container {
    margin-bottom: 20px;
}

.login-header .logo-icon {
    width: 70px;
    height: 70px;
    font-size: 24px;
    border: 4px solid rgba(255, 215, 0, 0.3);
    margin: 0 auto;
}

.login-header .logo-icon.logo-new {
    border: none;
    background: transparent;
}

.login-header .logo-icon::before {
    top: -15px;
    font-size: 28px;
}

.login-header .logo-icon.logo-new::before {
    display: none;
}

.login-header h2 {
    margin: 15px 0 5px 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: white;
}

.login-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
    font-style: italic;
}

.login-body {
    padding: 40px 30px;
}

.login-body .form-control {
    border: 1.5px solid var(--gc-border);
    border-radius: 8px;
    padding: 14px 15px 14px 45px;
    font-size: 14px;
    transition: all 0.2s;
    width: 100%;
}

.login-body .form-control:focus {
    border-color: var(--gc-blue);
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);
    outline: none;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 42px;
    color: var(--gc-gray);
    font-size: 16px;
}

.btn-login {
    background: var(--gc-blue);
    color: white;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    width: 100%;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-login:hover {
    background: #0041A8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 82, 204, 0.3);
}

.footer-text {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: var(--gc-gray);
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 42px;
    cursor: pointer;
    color: var(--gc-gray);
    font-size: 16px;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 13px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-check-input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* ===================================
   ADDITIONAL UTILITY STYLES
   =================================== */
.welcome-greeting {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--gc-dark);
}

.welcome-subtitle {
    color: var(--gc-gray);
    font-size: 13px;
    margin-bottom: 25px;
}

.activity-icon.green {
    background: #D5F6EF;
    color: var(--gc-success);
}

.activity-icon.blue-icon {
    background: #EBF3FF;
    color: var(--gc-blue);
}

.stat-mini-chart {
    position: absolute;
    bottom: 10px;
    right: 15px;
    width: 80px;
    height: 25px;
    opacity: 0.3;
}

/* ===================================
   PAGE VISIBILITY CONTROLS
   =================================== */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* ===================================
   DEMO BANNER (Can be removed in production)
   =================================== */
.demo-banner {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: #000;
    padding: 10px;
    text-align: center;
    font-weight: bold;
}

/* ===================================
   LEGACY STAT CARD STYLES (for demo.html compatibility)
   =================================== */
.stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.stat-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transform: translateY(-3px);
}

.stat-card .icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.stat-card.blue { border-left: 4px solid var(--gc-blue); }
.stat-card.red { border-left: 4px solid var(--gc-red); }
.stat-card.green { border-left: 4px solid #28a745; }
.stat-card.orange { border-left: 4px solid #fd7e14; }

.stat-card h3 {
    font-size: 2rem;
    font-weight: bold;
    margin: 10px 0;
}

.stat-card p {
    color: #6c757d;
    margin: 0;
    font-size: 0.9rem;
}

/* ===================================
   LEGACY DASHBOARD CARD (for demo.html compatibility)
   =================================== */
.dashboard-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s;
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, var(--gc-blue) 0%, #003d82 100%);
    color: white;
    font-weight: 600;
    border: none;
}

/* ===================================
   NAVBAR STYLES (for demo.html compatibility)
   =================================== */
.navbar {
    background: linear-gradient(135deg, var(--gc-blue) 0%, #003d82 100%);
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-dark {
    background: linear-gradient(135deg, var(--gc-dark-blue) 0%, var(--gc-blue) 100%);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: white !important;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    margin: 0 10px;
    transition: all 0.3s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: white !important;
    background-color: rgba(255,255,255,0.1);
    border-radius: 5px;
}

/* ===================================
   CONTENT AREA
   =================================== */
.content-area {
    padding: 30px;
}

/* ===================================
   FOOTER STYLES
   =================================== */
.main-footer {
    background: linear-gradient(135deg, #001529 0%, #003366 100%);
    color: white;
    padding: 30px 35px 20px;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item i {
    font-size: 32px;
    color: #FFD700;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.contact-item div {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #FFD700;
    font-weight: 600;
    margin-bottom: 3px;
}

.contact-value {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.contact-divider {
    width: 2px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
}

.footer-motto {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.motto-star {
    color: #FFD700;
    font-size: 20px;
    margin-right: 10px;
}

.motto-text {
    font-size: 24px;
    font-weight: 300;
    font-style: italic;
    color: #FFD700;
    font-family: 'Georgia', serif;
}

.footer-copyright {
    text-align: center;
}

.footer-copyright p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .footer-contact {
        flex-direction: column;
        gap: 20px;
    }
    
    .contact-divider {
        display: none;
    }
    
    .motto-text {
        font-size: 18px;
    }
    
    .contact-value {
        font-size: 16px;
    }
    
    .main-footer {
        padding: 25px 20px 15px;
    }
}

/* ===================================
   SINGLE PAGE APP STYLES
   =================================== */
.content-section {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.content-section.active {
    display: block;
}

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

/* Toast Notifications */
.toast-notification {
    animation: slideIn 0.3s ease-out;
}

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

/* Notification Modal Styles */
.notification-item {
    padding: 15px;
    border-bottom: 1px solid var(--gc-border);
    display: flex;
    gap: 15px;
    transition: all 0.2s;
}

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

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

.notification-item.unread {
    background: var(--gc-light-blue);
    border-left: 3px solid var(--gc-blue);
}

.notification-item .notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-item .notification-icon.loan_application {
    background: #FFF7E6;
    color: var(--gc-warning);
}

.notification-item .notification-icon.loan_approved {
    background: #D5F6EF;
    color: var(--gc-success);
}

.notification-item .notification-icon.loan_rejected {
    background: #FFE8E8;
    color: var(--gc-danger);
}

.notification-item .notification-icon.payment {
    background: #EBF3FF;
    color: var(--gc-blue);
}

.notification-item .notification-icon.system {
    background: var(--gc-light-gray);
    color: var(--gc-gray);
}

.notification-item .notification-content {
    flex: 1;
}

.notification-item .notification-content h6 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: var(--gc-dark);
}

.notification-item .notification-content p {
    font-size: 13px;
    color: var(--gc-gray);
    margin: 0 0 5px 0;
}

.notification-item .notification-content small {
    font-size: 11px;
    color: var(--gc-gray);
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Tabs Styling */
.nav-tabs {
    border-bottom: 2px solid var(--gc-border);
}

.nav-tabs .nav-link {
    border: none;
    color: var(--gc-gray);
    padding: 12px 20px;
    font-weight: 600;
    transition: all 0.2s;
}

.nav-tabs .nav-link:hover {
    color: var(--gc-blue);
    border-bottom: 2px solid var(--gc-blue);
}

.nav-tabs .nav-link.active {
    color: var(--gc-blue);
    border-bottom: 2px solid var(--gc-blue);
    background: none;
}

/* Modal Improvements */
.modal-header.bg-success,
.modal-header.bg-danger {
    color: white;
}

.modal-header .btn-close-white {
    filter: brightness(0) invert(1);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Empty State Styles */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state h5 {
    color: var(--gc-dark);
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--gc-gray);
    margin-bottom: 20px;
}

/* ===================================
   END OF STYLESHEET
   =================================== */
