/**
 * Sistem Koperasi JPJ Pahang Berhad
 * Modern Banking UI Theme
 */

:root {
    --primary: #301e5e;
    --accent: #e67409;
    --danger: #e0040c;
    --dark: #303030;
    --light: #f0f0f0;
    --white: #ffffff;
    --radius: 12px;
    --shadow-sm: 0 2px 8px rgba(48, 30, 94, 0.08);
    --shadow-md: 0 4px 16px rgba(48, 30, 94, 0.12);
    --shadow-lg: 0 8px 32px rgba(48, 30, 94, 0.16);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #301e5e 0%, #4a2f7e 50%, #301e5e 100%);
    min-height: 100vh;
    color: var(--dark);
    position: relative;
    overflow-x: hidden;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(230, 116, 9, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(230, 116, 9, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Auth Container - Modern Banking Style */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-header {
    background: linear-gradient(135deg, var(--primary) 0%, #4a2f7e 100%);
    color: white;
    padding: 2.5rem 2rem 2rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.auth-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(230, 116, 9, 0.15) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-10px, -10px); }
}

.auth-header img {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
    letter-spacing: -0.5px;
}

.auth-header p {
    font-size: 0.95rem;
    opacity: 0.95;
    position: relative;
    z-index: 2;
    font-weight: 400;
}

.auth-body {
    padding: 2.5rem 2rem 2rem 2rem;
    background: var(--white);
}

/* Form Controls - Banking Style */
.form-label {
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--dark);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.form-label i {
    color: var(--primary);
    margin-right: 0.5rem;
    font-size: 1rem;
}

.form-control, .form-select {
    border-radius: 8px;
    padding: 0.85rem 1rem;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    background: var(--white);
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(230, 116, 9, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: #9ca3af;
}

/* Input Group */
.input-group {
    position: relative;
}

.input-group .btn-outline-secondary {
    border: 2px solid #e5e7eb;
    border-left: none;
    background: var(--white);
    color: var(--dark);
    border-radius: 0 8px 8px 0;
    padding: 0.85rem 1rem;
    transition: all 0.3s ease;
}

.input-group .btn-outline-secondary:hover {
    background: var(--light);
    color: var(--primary);
    border-color: #e5e7eb;
}

.input-group .form-control {
    border-radius: 8px 0 0 8px;
}

/* Checkbox - Modern Style */
.form-check {
    padding: 0.75rem 1rem;
    background: var(--light);
    border-radius: 8px;
    margin: 0;
    transition: all 0.3s ease;
}

.form-check:hover {
    background: #e8e9ea;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0;
    cursor: pointer;
    border: 2px solid #d1d5db;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

.form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(230, 116, 9, 0.1);
    border-color: var(--accent);
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--dark);
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    margin-left: 0.5rem;
}

.form-check-label i {
    color: var(--accent);
    margin-right: 0.4rem;
}

/* Buttons - Banking Style */
.btn {
    border-radius: 8px;
    padding: 0.9rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #d66308 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(230, 116, 9, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 116, 9, 0.4);
    background: linear-gradient(135deg, #d66308 0%, var(--accent) 100%);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

.btn-outline-danger {
    border: 2px solid var(--danger);
    color: var(--danger);
    background: transparent;
}

.btn-outline-danger:hover {
    background: var(--danger);
    color: white;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
    display: block;
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.alert-danger {
    background: rgba(224, 4, 12, 0.1);
    color: var(--danger);
    border-left: 4px solid var(--danger);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border-left: 4px solid #059669;
}

.alert-info {
    background: rgba(230, 116, 9, 0.1);
    color: var(--accent);
    border-left: 4px solid var(--accent);
}

/* Turnstile Container */
.cf-turnstile {
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
}

/* Divider */
hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
    margin: 1.5rem 0;
}

/* Footer Text */
.text-center.small {
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 576px) {
    .auth-card {
        max-width: 100%;
        border-radius: 0;
        min-height: 100vh;
    }
    
    .auth-header {
        padding: 2rem 1.5rem 1.5rem 1.5rem;
    }
    
    .auth-body {
        padding: 2rem 1.5rem;
    }
    
    .row.mt-2 {
        gap: 0.75rem;
    }
    
    .row.mt-2 .col-md-6 {
        width: 100%;
    }
    
    .btn-sm {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .auth-header h1 {
        font-size: 1.5rem;
    }
}

/* Loading State */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   DASHBOARD - MODERN BANKING THEME
   ============================================ */

/* Main Container */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Member Card - Hero Section */
.member-card {
    background: linear-gradient(135deg, var(--primary) 0%, #4a2f7e 100%);
    color: white;
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.member-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(230, 116, 9, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.member-card .member-number {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.member-card .member-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.member-card .member-since {
    font-size: 0.95rem;
    opacity: 0.9;
}

.member-card .balance-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 280px;
}

.member-card .balance-card .label {
    font-size: 0.85rem;
    opacity: 0.95;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-card .balance-card .amount {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Cards - Modern Banking Style */
.card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: none;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, var(--primary) 0%, #4a2f7e 100%);
    color: white;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius) var(--radius) 0 0;
    font-weight: 600;
    font-size: 1rem;
    border: none;
}

.card-header.bg-success {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.card-body {
    padding: 2rem 1.5rem;
}

/* Dividend Display */
.dividend-display {
    background: linear-gradient(135deg, var(--accent) 0%, #d66308 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(230, 116, 9, 0.25);
}

.dividend-display .label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.95;
    font-weight: 600;
}

.dividend-display .dividend-amount {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dividend-display small {
    opacity: 0.9;
    font-size: 0.85rem;
}

/* Alerts - Banking Style */
.alert {
    border-radius: 10px;
    border: none;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: flex-start;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.alert i {
    margin-top: 2px;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 191, 36, 0.1) 100%);
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.alert-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(96, 165, 250, 0.1) 100%);
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(52, 211, 153, 0.1) 100%);
    color: #065f46;
    border-left: 4px solid #10b981;
}

/* Badges - Modern Style */
.badge {
    padding: 0.5rem 0.85rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
}

.badge.bg-success {
    background: linear-gradient(135deg, #059669, #10b981) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #f59e0b, #fbbf24) !important;
}

.badge.bg-secondary {
    background: linear-gradient(135deg, #6b7280, #9ca3af) !important;
}

.badge.bg-primary {
    background: linear-gradient(135deg, var(--primary), #4a2f7e) !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, #3b82f6, #60a5fa) !important;
}

/* Tables - Clean Banking Style */
.table-responsive {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: none;
    background: transparent;
}

.table {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.table thead {
    background: var(--light);
    color: var(--dark);
    border-bottom: 2px solid #e5e7eb;
}

.table thead th {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    padding: 1rem 1.25rem;
    color: var(--dark);
    border: none;
}

.table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
}

.table tbody tr:last-child {
    border-bottom: none;
}

.table tbody tr:hover {
    background: rgba(230, 116, 9, 0.03);
}

.table tbody td {
    padding: 1.25rem;
    vertical-align: middle;
    color: var(--dark);
    border: none;
}

.table tbody td strong {
    font-weight: 700;
}

/* Empty State */
.text-center.py-5 {
    padding: 4rem 2rem !important;
}

.text-center.py-5 i {
    opacity: 0.3;
    color: var(--primary);
}

.text-center.py-5 p {
    font-size: 1rem;
    color: #9ca3af;
    font-weight: 500;
}

/* Buttons - Consistent with Login */
.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-outline-success {
    border: 2px solid #059669;
    color: #059669;
    background: transparent;
}

.btn-outline-success:hover {
    background: #059669;
    color: white;
    border-color: #059669;
}

.btn-success {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #10b981, #059669);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.4);
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
}

/* Divider Line */
hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
    margin: 1.5rem 0;
}

/* AGM Status Section */
.card-body .row {
    margin-bottom: 1rem;
}

.card-body .row:last-child {
    margin-bottom: 0;
}

/* Transaction Colors */
.text-success {
    color: #059669 !important;
    font-weight: 700;
}

.text-danger {
    color: var(--danger) !important;
    font-weight: 700;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .main-container {
        padding: 1rem;
    }
    
    .member-card {
        padding: 1.5rem;
    }
    
    .member-card .member-name {
        font-size: 1.5rem;
    }
    
    .member-card .balance-card {
        min-width: 100%;
        margin-top: 1.5rem;
    }
    
    .member-card .balance-card .amount {
        font-size: 1.8rem;
    }
    
    .card-body {
        padding: 1.5rem 1rem;
    }
    
    .dividend-display .dividend-amount {
        font-size: 2rem;
    }
    
    .table {
        font-size: 0.85rem;
    }
    
    .table thead th,
    .table tbody td {
        padding: 0.85rem 0.75rem;
    }
    
    .d-flex.flex-wrap {
        flex-direction: column;
        gap: 1rem;
    }
    
    .d-flex.flex-wrap > div {
        width: 100%;
    }
    
    .btn-sm {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .member-card .member-number {
        font-size: 0.8rem;
    }
    
    .member-card .member-name {
        font-size: 1.35rem;
    }
    
    .alert {
        font-size: 0.9rem;
        padding: 1rem;
    }
}

//* ============================================
   HEADER & NAVIGATION - BANKING THEME
   ============================================ */

/* Navbar - Professional Banking Style */
.navbar {
    background: white !important;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.navbar-brand {
    padding: 0;
    margin-right: 3rem;
}

.navbar-brand:hover {
    opacity: 0.9;
}

.navbar-brand img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.brand-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
    letter-spacing: -0.2px;
}

.brand-subtitle {
    font-size: 0.7rem;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: -2px;
}

/* Navigation Links - Horizontal Clean Style */
.navbar-nav {
    gap: 0.25rem;
}

.navbar-nav .nav-link {
    color: #4b5563 !important;
    font-weight: 500;
    padding: 0.65rem 1.25rem !important;
    border-radius: 8px;
    transition: all 0.25s ease;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.navbar-nav .nav-link i {
    font-size: 0.95rem;
    width: 18px;
    text-align: center;
}

.navbar-nav .nav-link:hover {
    background: #fef3e2;
    color: var(--accent) !important;
}

.navbar-nav .nav-link.active {
    background: #fef3e2;
    color: var(--accent) !important;
    font-weight: 600;
}

/* Notification Badge - Smaller and Cleaner */
.badge-notification {
    background: var(--danger);
    color: white;
    font-size: 0.65rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-left: 0.25rem;
}

/* User Profile Section - Professional */
.navbar-user {
    margin-left: 1.5rem;
}

.user-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem 0.5rem 0.75rem;
    border-radius: 10px;
    background: transparent;
    text-decoration: none;
    transition: all 0.25s ease;
    color: var(--dark);
    border: 1px solid transparent;
}

.user-profile-link:hover {
    background: #f8f9fa;
    border-color: #e5e7eb;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #4a2f7e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.95rem;
}

.user-info {
    text-align: left;
    line-height: 1.3;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0;
}

.user-id {
    font-size: 0.7rem;
    color: #9ca3af;
    font-weight: 500;
}

.user-profile-link .fa-chevron-down {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Dropdown Menu - Clean Professional Style */
.dropdown-menu {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 0.5rem;
    min-width: 280px;
    margin-top: 0.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 0.5rem;
    background: transparent;
}

.user-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #4a2f7e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
}

.dropdown-header .fw-bold {
    font-size: 0.95rem;
    color: var(--dark);
    margin-bottom: 2px;
}

.dropdown-header small {
    font-size: 0.75rem;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.7rem 1rem;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    color: var(--dark);
    font-weight: 500;
    display: flex;
    align-items: center;
}

.dropdown-item i {
    width: 20px;
}

.dropdown-item:hover {
    background: #fef3e2;
    color: var(--accent);
}

.dropdown-item.text-danger {
    color: var(--danger) !important;
}

.dropdown-item.text-danger:hover {
    background: #fee;
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: #f3f4f6;
}

/* Navbar Toggler - Better Mobile Button */
.navbar-toggler {
    border: 1px solid #e5e7eb;
    padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(230, 116, 9, 0.1);
}

/* Mobile Navigation */
@media (max-width: 991px) {
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-brand {
        margin-right: 0;
    }
    
    .navbar-user {
        margin-left: 0;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #f3f4f6;
    }
    
    .navbar-nav {
        gap: 0.25rem;
        padding: 1rem 0 0.5rem 0;
    }
    
    .navbar-nav .nav-link {
        justify-content: flex-start;
        width: 100%;
    }
    
    .user-profile-link {
        width: 100%;
        justify-content: space-between;
        padding: 0.75rem 1rem;
    }
    
    .dropdown-menu {
        width: 100%;
        margin-top: 0.5rem;
        position: static !important;
        transform: none !important;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 0.65rem 0;
    }
    
    .navbar-brand img {
        height: 38px;
    }
    
    .brand-title {
        font-size: 0.9rem;
    }
    
    .brand-subtitle {
        font-size: 0.65rem;
    }
}

/* ============================================
   AGM FORM - MODERN BANKING THEME
   ============================================ */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, #4a2f7e 100%);
    color: white;
    padding: 2rem 2.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(230, 116, 9, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 2;
    letter-spacing: -0.5px;
}

/* AGM Info Box - Premium Style */
.agm-info-box {
    background: linear-gradient(135deg, rgba(48, 30, 94, 0.05) 0%, rgba(230, 116, 9, 0.05) 100%);
    border: 2px solid rgba(230, 116, 9, 0.2);
    color: var(--dark);
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.agm-info-box h5 {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.agm-info-box p {
    color: var(--dark);
    font-size: 0.95rem;
    line-height: 1.8;
}

.agm-info-box strong {
    color: var(--accent);
    font-weight: 600;
}

/* Dividend Display - Premium Orange Card */
.dividend-display {
    background: linear-gradient(135deg, var(--accent) 0%, #d66308 100%);
    color: white;
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 8px 24px rgba(230, 116, 9, 0.3);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.dividend-display::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.dividend-display .label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.95;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.dividend-display .dividend-amount {
    font-size: 3rem;
    font-weight: 800;
    margin: 1rem 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
    letter-spacing: -1px;
}

.dividend-display .note {
    font-size: 0.9rem;
    opacity: 0.95;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* Balance Warning - Critical Alert */
.balance-warning {
    background: linear-gradient(135deg, rgba(224, 4, 12, 0.08) 0%, rgba(239, 68, 68, 0.08) 100%);
    border: 2px solid var(--danger);
    border-left-width: 5px;
    color: var(--danger);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.balance-warning i {
    font-size: 1.2rem;
    vertical-align: middle;
}

/* Card Headers - Enhanced */
.card-header {
    background: linear-gradient(135deg, var(--primary) 0%, #4a2f7e 100%);
    color: white;
    padding: 1.25rem 1.75rem;
    border-radius: var(--radius) var(--radius) 0 0;
    font-weight: 600;
    font-size: 1.05rem;
    border: none;
}

.card-header.bg-success {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.card-header i {
    opacity: 0.95;
}

/* Form Check - Radio & Checkbox - Banking Style */
.form-check {
    padding: 0;
    margin-bottom: 0;
}

.form-check.p-3 {
    padding: 1.5rem !important;
    transition: all 0.3s ease;
    cursor: pointer;
}

.form-check.p-3:hover {
    background: rgba(230, 116, 9, 0.03) !important;
    border-color: var(--accent) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.form-check.p-3.bg-light {
    background: #f8f9fa !important;
    cursor: not-allowed;
    opacity: 0.7;
}

.form-check.p-3.bg-light:hover {
    transform: none;
    box-shadow: none;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.25rem;
    cursor: pointer;
    border: 2px solid #d1d5db;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(230, 116, 9, 0.15);
}

.form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(230, 116, 9, 0.15);
    border-color: var(--accent);
}

.form-check-input[type="radio"] {
    border-radius: 50%;
}

.form-check-label {
    font-size: 0.95rem;
    color: var(--dark);
    cursor: pointer;
    font-weight: 500;
    line-height: 1.6;
}

.form-check-label strong {
    font-weight: 700;
    font-size: 1rem;
}

.form-check-label small {
    display: block;
    margin-top: 0.25rem;
    color: #6b7280;
    font-size: 0.85rem;
}

.form-check-label .text-danger {
    font-weight: 600;
}

/* Form Check Inline - Attendance Options */
.form-check-inline {
    padding: 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    margin: 0;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
}

.form-check-inline:hover {
    border-color: var(--accent);
    background: rgba(230, 116, 9, 0.03);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.form-check-inline .form-check-input:checked ~ .form-check-label {
    color: var(--accent);
}

/* Textarea */
textarea.form-control {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 150px;
}

textarea.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(230, 116, 9, 0.1);
}

textarea.form-control::placeholder {
    color: #9ca3af;
    font-style: italic;
}

/* Buttons - Enhanced */
.btn-secondary {
    background: #6b7280;
    color: white;
    border: none;
}

.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
    padding: 0.9rem 2rem;
    font-weight: 600;
}

.btn-success:hover {
    background: linear-gradient(135deg, #10b981, #059669);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #ef4444);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(224, 4, 12, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ef4444, var(--danger));
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(224, 4, 12, 0.4);
}

/* Release Letter Section */
#releaseLetterCard {
    border-left: 4px solid var(--accent);
}

#releaseLetterCard .card-header {
    background: linear-gradient(135deg, var(--accent) 0%, #d66308 100%);
}

/* Table in Submitted View */
.table-borderless td {
    padding: 0.75rem 0.5rem;
    vertical-align: middle;
}

.table-borderless strong {
    color: var(--dark);
    font-weight: 600;
}

/* Badge Styles - Enhanced */
.badge {
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
}

.badge.bg-success {
    background: linear-gradient(135deg, #059669, #10b981) !important;
}

.badge.bg-secondary {
    background: linear-gradient(135deg, #6b7280, #9ca3af) !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, #0891b2, #06b6d4) !important;
}

/* Light Background Boxes */
.bg-light.rounded {
    background: rgba(230, 116, 9, 0.05) !important;
    border: 1px solid rgba(230, 116, 9, 0.15);
    padding: 1.5rem;
}

.bg-light.rounded h6 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Motion Text Display */
.bg-light.rounded:has(+ hr) {
    background: #f8f9fa !important;
    border: 1px solid #e5e7eb;
    white-space: pre-wrap;
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    line-height: 1.8;
}

/* Responsive AGM Form */
@media (max-width: 768px) {
    .page-header {
        padding: 1.5rem;
    }
    
    .page-header h1 {
        font-size: 1.4rem;
    }
    
    .agm-info-box {
        padding: 1.5rem;
    }
    
    .agm-info-box .text-md-end {
        text-align: left !important;
        margin-top: 1rem;
    }
    
    .dividend-display {
        padding: 2rem 1.5rem;
    }
    
    .dividend-display .dividend-amount {
        font-size: 2.5rem;
    }
    
    .form-check-inline {
        width: 100%;
        margin-bottom: 0.75rem;
    }
    
    .btn-lg {
        width: 100%;
        margin-top: 1rem;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .d-flex.justify-content-between .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 1.25rem;
    }
    
    .page-header h1 {
        font-size: 1.25rem;
    }
    
    .agm-info-box {
        padding: 1.25rem;
    }
    
    .card-header {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
}

/* ============================================
   ACTIVATION PAGE - BANKING THEME
   ============================================ */

/* Progress Steps Indicator */
.progress-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.step-circle.bg-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #d66308 100%);
    box-shadow: 0 4px 12px rgba(230, 116, 9, 0.4);
}

.step-circle.bg-secondary {
    background: #e5e7eb;
    color: #9ca3af;
}

.step-circle.bg-success {
    background: linear-gradient(135deg, #059669, #10b981);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
}

.step-line {
    height: 3px;
    width: 60px;
    background: #e5e7eb;
    position: relative;
    transition: all 0.3s ease;
}

.step-line.bg-primary {
    background: linear-gradient(90deg, var(--accent), #d66308);
}

.step-line.bg-success {
    background: linear-gradient(90deg, #059669, #10b981);
}

/* Step Headers */
.auth-body h5 {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--light);
}

/* Form Labels */
.auth-body .form-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}

/* Input Fields - Enhanced */
.auth-body .form-control {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.auth-body .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(230, 116, 9, 0.1);
}

.auth-body .form-control::placeholder {
    color: #9ca3af;
}

/* OTP Input - Special Styling */
input[name="otp"] {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    letter-spacing: 0.5rem !important;
    text-align: center;
    font-size: 1.8rem !important;
    padding: 1rem !important;
    background: linear-gradient(135deg, rgba(230, 116, 9, 0.03), rgba(48, 30, 94, 0.03));
    border: 2px dashed var(--accent) !important;
}

input[name="otp"]:focus {
    background: white;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 4px rgba(230, 116, 9, 0.15) !important;
}

/* IC Number Input */
input[name="ic_number"] {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* Small Helper Text */
.auth-body small.text-muted {
    font-size: 0.8rem;
    color: #6b7280;
    display: block;
    margin-top: 0.4rem;
}

/* Password Requirements */
.password-requirements {
    padding: 0.75rem 1rem;
    background: rgba(230, 116, 9, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--accent);
}

.requirement {
    display: flex;
    align-items: center;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    color: #6b7280;
    transition: all 0.3s ease;
}

.requirement:last-child {
    margin-bottom: 0;
}

.requirement i {
    margin-right: 0.5rem;
    width: 16px;
    font-size: 0.9rem;
}

.requirement.met {
    color: #059669;
    font-weight: 600;
}

.requirement.met i {
    color: #059669;
}

/* Buttons - Consistent with Theme */
.auth-body .btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #d66308 100%);
    border: none;
    padding: 0.9rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(230, 116, 9, 0.3);
    transition: all 0.3s ease;
}

.auth-body .btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #d66308 0%, var(--accent) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 116, 9, 0.4);
}

.auth-body .btn-primary:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.6;
}

.auth-body .btn-primary i {
    font-size: 0.9rem;
}

/* Alert Messages */
.auth-body .alert {
    border-radius: 8px;
    border: none;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    box-shadow: var(--shadow-sm);
}

.auth-body .alert-danger {
    background: linear-gradient(135deg, rgba(224, 4, 12, 0.1) 0%, rgba(239, 68, 68, 0.1) 100%);
    color: var(--danger);
    border-left: 4px solid var(--danger);
}

.auth-body .alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(52, 211, 153, 0.1) 100%);
    color: #059669;
    border-left: 4px solid #059669;
}

.auth-body .alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 191, 36, 0.1) 100%);
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.auth-body .alert i {
    margin-top: 2px;
}

/* Back Link */
.auth-body .text-center a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.auth-body .text-center a:hover {
    color: var(--accent);
    transform: translateX(-3px);
}

.auth-body .text-center a i {
    transition: all 0.3s ease;
}

.auth-body .text-center a:hover i {
    transform: translateX(-3px);
}

/* Card Max Width Override */
.auth-card[style*="max-width: 500px"] {
    max-width: 520px !important;
}

/* Animation for Progress Steps */
@keyframes stepPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.step-circle.bg-primary {
    animation: stepPulse 2s infinite;
}

/* Responsive Activation Page */
@media (max-width: 576px) {
    .auth-card[style*="max-width: 500px"] {
        max-width: 100% !important;
    }
    
    .progress-steps {
        padding: 0 0.5rem;
    }
    
    .step-circle {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .step-line {
        width: 40px;
    }
    
    .auth-body h5 {
        font-size: 1rem;
    }
    
    input[name="otp"] {
        font-size: 1.5rem !important;
        letter-spacing: 0.3rem !important;
    }
    
    .password-requirements {
        padding: 0.6rem 0.85rem;
    }
    
    .requirement {
        font-size: 0.8rem;
    }
}

/* ============================================
   FORGOT PASSWORD & RESET PASSWORD PAGES
   ============================================ */

/* Icon Display - Large Icons */
.auth-body .fa-3x {
    font-size: 3.5rem;
    opacity: 0.9;
}

.auth-body .fa-4x {
    font-size: 4rem;
    opacity: 0.9;
}

.auth-body .text-primary {
    color: var(--primary) !important;
}

.auth-body .text-success {
    color: #059669 !important;
}

.auth-body .text-warning {
    color: #f59e0b !important;
}

/* Info Text */
.auth-body .text-muted {
    color: #6b7280 !important;
    line-height: 1.7;
}

.auth-body .text-muted strong {
    color: var(--dark);
    font-weight: 600;
}

/* Select Dropdown - Enhanced */
.form-select {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: white;
    cursor: pointer;
}

.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(230, 116, 9, 0.1);
    outline: none;
}

.form-select option:disabled {
    color: #d1d5db;
    background: #f3f4f6;
}

/* Success State Icons */
.fa-envelope-circle-check {
    color: #059669;
}

/* Small Links */
.auth-body a.text-muted {
    color: #6b7280 !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.auth-body a.text-muted:hover {
    color: var(--accent) !important;
}

.auth-body a.small {
    font-size: 0.875rem;
}

/* Match Status Indicator */
#matchStatus {
    font-size: 0.85rem;
    font-weight: 500;
}

#matchStatus .text-success {
    color: #059669 !important;
}

#matchStatus .text-danger {
    color: var(--danger) !important;
}

/* Input Group Toggle Button */
.input-group .btn-outline-secondary {
    border: 2px solid #e5e7eb;
    border-left: none;
    background: white;
    color: #6b7280;
    transition: all 0.3s ease;
}

.input-group .btn-outline-secondary:hover {
    background: var(--light);
    color: var(--accent);
    border-color: #e5e7eb;
}

.input-group .form-control {
    border-right: none;
}

.input-group .form-control:focus + .btn-outline-secondary {
    border-color: var(--accent);
}

/* ============================================
   PROFILE PAGE - BANKING THEME
   ============================================ */

/* Page Header with Icon */
h4.mb-4 {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light);
    margin-bottom: 1.5rem !important;
}

h4.mb-4 i {
    color: var(--accent);
}

/* Profile Info Table */
.table-borderless {
    margin-bottom: 0;
}

.table-borderless td {
    padding: 1rem 0.5rem;
    vertical-align: middle;
    border-bottom: 1px solid #f3f4f6;
}

.table-borderless tr:last-child td {
    border-bottom: none;
}

.table-borderless td:first-child {
    color: #6b7280;
    font-weight: 500;
    font-size: 0.9rem;
}

.table-borderless td:last-child {
    color: var(--dark);
    font-size: 0.95rem;
}

.table-borderless strong {
    font-weight: 600;
}

/* Profile Badges */
.table-borderless .badge {
    padding: 0.4rem 0.9rem;
    font-weight: 600;
    font-size: 0.8rem;
}

/* Change Password Form */
.card .form-label {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
}

.card .form-control {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    transition: all 0.3s ease;
}

.card .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(230, 116, 9, 0.1);
}

/* Save Button in Forms */
.card .btn-success {
    background: linear-gradient(135deg, #059669, #10b981);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.card .btn-success:hover {
    background: linear-gradient(135deg, #10b981, #059669);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.4);
}

/* ============================================
   TRANSACTIONS PAGE - BANKING THEME
   ============================================ */

/* Page Header with Balance */
.d-flex.justify-content-between.align-items-center {
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light);
}

.d-flex.justify-content-between h4 {
    color: var(--primary);
    font-weight: 700;
    border: none;
    padding: 0;
    margin: 0;
}

/* Balance Badge */
.badge.bg-success.fs-6 {
    background: linear-gradient(135deg, #059669, #10b981) !important;
    padding: 0.75rem 1.5rem;
    font-size: 1rem !important;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* Transaction Table */
.table-hover tbody tr {
    transition: all 0.2s ease;
}

.table-hover tbody tr:hover {
    background: rgba(230, 116, 9, 0.03);
    cursor: pointer;
}

/* Table Header - Light Style */
.table-light {
    background: var(--light) !important;
    border-bottom: 2px solid #e5e7eb;
}

.table-light th {
    color: var(--dark);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 1rem;
    border: none;
}

/* Table Body */
.table tbody td {
    padding: 1.1rem 1rem;
    vertical-align: middle;
    color: var(--dark);
    font-size: 0.9rem;
}

/* Transaction Type Badges */
.table .badge {
    padding: 0.45rem 0.85rem;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
}

.table .badge.bg-success {
    background: linear-gradient(135deg, #059669, #10b981) !important;
}

.table .badge.bg-info {
    background: linear-gradient(135deg, #0891b2, #06b6d4) !important;
}

.table .badge.bg-primary {
    background: linear-gradient(135deg, var(--primary), #4a2f7e) !important;
}

/* Amount Colors */
.table .text-success {
    color: #059669 !important;
    font-weight: 700;
}

.table .text-danger {
    color: var(--danger) !important;
    font-weight: 700;
}

/* Empty State in Table */
.table tbody td.text-center {
    padding: 3rem 1rem !important;
    color: #9ca3af;
    font-size: 0.95rem;
}

/* Card with Table */
.card .card-body.p-0 {
    padding: 0 !important;
}

.card .table-responsive {
    border-radius: 0 0 var(--radius) var(--radius);
    overflow: hidden;
}

/* Responsive Tables */
@media (max-width: 768px) {
    .table {
        font-size: 0.85rem;
    }
    
    .table thead th,
    .table tbody td {
        padding: 0.85rem 0.75rem;
    }
    
    .table thead th {
        font-size: 0.75rem;
    }
    
    /* Hide less important columns on mobile */
    .table th:first-child,
    .table td:first-child {
        display: none;
    }
    
    .badge.bg-success.fs-6 {
        font-size: 0.9rem !important;
        padding: 0.6rem 1rem;
    }
}

@media (max-width: 576px) {
    h4.mb-4 {
        font-size: 1.3rem;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }
    
    .badge.bg-success.fs-6 {
        width: 100%;
        text-align: center;
    }
    
    /* Stack table on very small screens */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ============================================
   UTILITY CLASSES - ADDITIONAL
   ============================================ */

/* Format IC Number Display */
.table-borderless strong {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

/* Responsive Row Spacing */
.row.mb-4 {
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .row > .col-md-6:first-child {
        margin-bottom: 1.5rem;
    }
}

/* Alert Positioning */
.alert {
    margin-bottom: 1.5rem;
}

/* Card Spacing */
.card + .card {
    margin-top: 0;
}

/* Additional CSS for AGM Form - Bank Transfer Feature */

.form-check.p-3.border {
    transition: all 0.3s ease;
    cursor: pointer;
}

.form-check.p-3.border:hover {
    background-color: #f8f9fa;
    border-color: #050f96 !important;
}

.form-check.p-3.border input[type="radio"]:checked + label {
    color: #050f96;
}

#bankDetailsSection .card {
    border: 2px dashed #050f96;
}

#withdrawalMethodSection {
    animation: slideDown 0.3s ease-in-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Select2 customization for bank selection */
.select2-container--default .select2-selection--single {
    height: 38px;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
    padding-left: 12px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

/* Account number input */
#account_number {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-check.p-3.border {
        margin-bottom: 15px;
    }
    
    #withdrawalMethodSection .row,
    #bankDetailsSection .row {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Badge styling for submitted form display */
.badge.bg-primary {
    background-color: #050f96 !important;
}

/* Info box for bank transfer */
.bank-transfer-info {
    background: linear-gradient(135deg, #050f96 0%, #181261 100%);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.bank-transfer-info i {
    font-size: 1.2rem;
}

/* ============================================
   ADMIN PANEL - BANKING THEME EXTENSION
   ============================================ */

/* Admin Body Class */
body.admin-panel {
    background: #f3f4f6;
    min-height: 100vh;
}

/* Admin Navbar */
.admin-navbar {
    background: white !important;
    border-bottom: 2px solid rgba(48, 30, 94, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 0.5rem 0;
}

.admin-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
}

.admin-navbar .brand-text {
    display: flex;
    flex-direction: column;
}

.admin-navbar .brand-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.admin-navbar .brand-subtitle {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Admin Navigation Links */
.admin-navbar .navbar-nav .nav-link {
    color: var(--dark) !important;
    font-weight: 500;
    padding: 0.65rem 1rem !important;
    border-radius: 8px;
    transition: all 0.25s ease;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-navbar .navbar-nav .nav-link:hover {
    background: rgba(230, 116, 9, 0.08);
    color: var(--accent) !important;
}

.admin-navbar .navbar-nav .nav-link.active {
    background: linear-gradient(135deg, rgba(48, 30, 94, 0.1), rgba(230, 116, 9, 0.05));
    color: var(--primary) !important;
    font-weight: 600;
}

/* Admin Dropdown */
.admin-navbar .dropdown-menu {
    min-width: 220px;
}

/* Admin User Profile */
.admin-navbar .navbar-user {
    border-left: 1px solid #e5e7eb;
    padding-left: 1.5rem;
    margin-left: 1.5rem;
}

/* Notification Count for Admin */
.admin-navbar .badge-notification {
    background: var(--danger);
    color: white;
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
    border-radius: 10px;
    margin-left: 0.5rem;
    font-weight: 700;
    display: inline-block;
    min-width: 18px;
    text-align: center;
}

/* Admin Main Container */
body.admin-panel .main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

/* Admin Cards */
body.admin-panel .card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

body.admin-panel .card-header {
    background: linear-gradient(135deg, var(--primary) 0%, #4a2f7e 100%);
    color: white;
    font-weight: 600;
}

/* Admin Tables */
body.admin-panel .table thead {
    background: linear-gradient(135deg, rgba(48, 30, 94, 0.05), rgba(230, 116, 9, 0.02));
}

/* Admin Stats Card */
.admin-stats-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    border-left: 4px solid var(--accent);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.admin-stats-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.admin-stats-card .stats-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(230, 116, 9, 0.1), rgba(48, 30, 94, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
}

.admin-stats-card .stats-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.admin-stats-card .stats-label {
    font-size: 0.85rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Admin Page Headers */
.admin-page-header {
    background: linear-gradient(135deg, var(--primary) 0%, #4a2f7e 100%);
    color: white;
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.admin-page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.admin-page-header .breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
    margin-top: 0.5rem;
}

.admin-page-header .breadcrumb-item {
    color: rgba(255, 255, 255, 0.8);
}

.admin-page-header .breadcrumb-item.active {
    color: white;
}

.admin-page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

/* Admin Action Buttons */
.admin-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.admin-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Admin Responsive */
@media (max-width: 991px) {
    .admin-navbar .navbar-user {
        border-left: none;
        border-top: 1px solid #e5e7eb;
        padding-left: 0;
        margin-left: 0;
        padding-top: 1rem;
        margin-top: 1rem;
        width: 100%;
    }
    
    body.admin-panel .main-container {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    body.admin-panel .main-container {
        padding: 1rem;
    }
    
    .admin-page-header {
        padding: 1.5rem;
    }
    
    .admin-page-header h1 {
        font-size: 1.4rem;
    }
    
    .admin-stats-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .admin-navbar .brand-title {
        font-size: 0.9rem;
    }
    
    .admin-navbar .brand-subtitle {
        font-size: 0.65rem;
    }
    
    .admin-page-header {
        padding: 1.25rem;
    }
    
    .admin-page-header h1 {
        font-size: 1.25rem;
    }
}

/* Statistics Cards for Admin Dashboard */
.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card.border-left-primary {
    border-left: 4px solid #3b82f6;
}

.card.border-left-success {
    border-left: 4px solid #10b981;
}

.card.border-left-warning {
    border-left: 4px solid #f59e0b;
}

.card.border-left-info {
    border-left: 4px solid #06b6d4;
}

.card .card-footer {
    background: #f8f9fa;
    border-top: 1px solid #e5e7eb;
}


/* Modern Accordion Styling */
.accordion-item {
    border: none;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.accordion-button {
    background-color: #fff;
    color: #2c3e50;
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    border: none;
    border-radius: 0;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #301e5e 0%, #4a3470 100%);
    color: #fff;
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.1);
}

.accordion-button:not(.collapsed) i {
    color: #fff;
}

.accordion-button:hover {
    background-color: #f8f9fa;
}

.accordion-button:not(.collapsed):hover {
    background: linear-gradient(135deg, #3a2668 0%, #5a4480 100%);
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-button::after {
    background-size: 1.25rem;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
    transform: rotate(-180deg);
}

.accordion-body {
    padding: 1.5rem;
    background-color: #fff;
    border-top: 3px solid transparent;
}

/* Border-left accent for each section */
.accordion-item:nth-child(1) .accordion-button:not(.collapsed) {
    border-left: 4px solid #0d6efd;
}

.accordion-item:nth-child(1) .accordion-body {
    border-left: 4px solid #0d6efd;
}

.accordion-item:nth-child(2) .accordion-button:not(.collapsed) {
    border-left: 4px solid #198754;
}

.accordion-item:nth-child(2) .accordion-body {
    border-left: 4px solid #198754;
}

.accordion-item:nth-child(3) .accordion-button:not(.collapsed) {
    border-left: 4px solid #ffc107;
}

.accordion-item:nth-child(3) .accordion-body {
    border-left: 4px solid #ffc107;
}

/* Icon styling in accordion headers */
.accordion-button i {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) i.fa-id-card {
    color: #0d6efd;
}

.accordion-button:not(.collapsed) i.fa-address-book {
    color: #198754;
}

.accordion-button:not(.collapsed) i.fa-user-shield {
    color: #ffc107;
}

/* Table styling inside accordion */
.accordion-body .table td {
    padding: 0.75rem 0.5rem;
    vertical-align: middle;
}

.accordion-body .table tr {
    border-bottom: 1px solid #f0f0f0;
}

.accordion-body .table tr:last-child {
    border-bottom: none;
}

/* Hover effect on table rows */
.accordion-body .table tr:hover {
    background-color: #f8f9fa;
}

/* Button styling inside accordion */
.accordion-body .btn-link {
    text-decoration: none;
    transition: all 0.2s ease;
}

.accordion-body .btn-link:hover {
    transform: scale(1.1);
}

/* Smooth collapse animation */
.accordion-collapse {
    transition: height 0.35s ease;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .accordion-button {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .accordion-body {
        padding: 1rem;
    }
}