* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f6fa;
    min-height: 100vh;
}

html {
    -webkit-text-size-adjust: 100%;
}

/* Login & Register */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
}

.register-box {
    max-width: 500px;
}

.login-box h1 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 24px;
    text-align: center;
}

.login-box h2 {
    color: #333;
    margin-bottom: 30px;
    font-size: 20px;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-primary {
    background: #667eea;
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: #5568d3;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-warning {
    background: #ffc107;
    color: #333;
}

.btn-info {
    background: #17a2b8;
    color: white;
}

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

.alert {
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.register-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.register-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

/* Dashboard Layout */
.dashboard {
    display: flex;
    min-height: 100vh;
    background: #f5f6fa;
}

.sidebar {
    width: 250px;
    background: linear-gradient(180deg, #006600 0%, #004d00 100%);
    color: white;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: rgba(0,0,0,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.sidebar-logo {
    font-size: 28px;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-title {
    font-size: 14px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.sidebar-role {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    margin-top: 2px;
}

.sidebar h2 {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 20px;
    font-size: 18px;
    color: #fff;
}

.sidebar ul {
    list-style: none;
    flex: 1;
    padding: 10px 0;
    overflow-y: auto;
}

.sidebar ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
}

.sidebar ul li a:hover, .sidebar ul li a.active {
    background: rgba(0,0,0,0.2);
    border-left: 3px solid #ffd700;
    color: white;
    padding-left: 17px;
}

.nav-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 10px 0;
    flex-shrink: 0;
    background: rgba(0,0,0,0.1);
}

.sidebar-bottom-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
}

.sidebar-bottom-link:hover,
.sidebar-bottom-link.active {
    background: rgba(0,0,0,0.2);
    border-left: 3px solid #ffd700;
    color: white;
    padding-left: 17px;
}

.sidebar-bottom-link.logout-link {
    color: rgba(255,100,100,0.9);
}

.sidebar-bottom-link.logout-link:hover {
    color: #ff6b6b;
    border-left-color: #ff6b6b;
}

.top-bar {
    background: linear-gradient(135deg, #006600 0%, #004d00 100%);
    padding: 20px 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    color: white;
    position: fixed;
    top: 0;
    left: 250px;
    right: 0;
    z-index: 100;
}

.main-content {
    margin-left: 250px;
    flex: 1;
    padding: 20px;
    padding-top: 90px;
}

.top-bar h1 {
    color: white;
    font-size: 26px;
    font-weight: 600;
    margin: 0;
}

.top-bar .subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    margin-top: 5px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info .user-name {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info .logout-btn {
    background: rgba(220,53,69,0.9);
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 14px;
}

.user-info .logout-btn:hover {
    background: rgba(220,53,69,1);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.dashboard-grid {
    display: grid;
    gap: 20px;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.stat-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stat-card h3 {
    color: #6c757d;
    font-size: 11px;
    margin-bottom: 12px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.stat-card .stat-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-card .stat-icon {
    font-size: 32px;
    opacity: 0.8;
}

.stat-card .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

.stat-card.blue .stat-icon { color: #667eea; }
.stat-card.green .stat-icon { color: #28a745; }
.stat-card.orange .stat-icon { color: #ffc107; }
.stat-card.red .stat-icon { color: #dc3545; }

/* Compact Stats Grid */
.stats-grid-compact {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card-small {
    background: white;
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

.stat-card-small:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.stat-card-small .stat-label {
    font-size: 11px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 12px;
}

.stat-card-small .stat-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    font-size: 32px;
    opacity: 0.8;
}

.stat-card-small.blue .stat-icon { color: #667eea; }
.stat-card-small.green .stat-icon { color: #28a745; }
.stat-card-small.orange .stat-icon { color: #ffc107; }
.stat-card-small.red .stat-icon { color: #dc3545; }
.stat-card-small.purple .stat-icon { color: #9b59b6; }
.stat-card-small.gray .stat-icon { color: #6c757d; }
.stat-card-small.teal .stat-icon { color: #17a2b8; }

.stat-card-small .stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.chart-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.chart-box h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 16px;
}

.chart-box canvas {
    max-height: 250px;
}

/* Content Box */
.content-box {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.content-box h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* Announcements */
.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.announcement-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

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

.announcement-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 16px;
}

.announcement-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.announcement-card small {
    color: #999;
    font-size: 12px;
}

/* Tables */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table thead {
    background: #f8f9fa;
}

table th, table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

table th {
    font-weight: 600;
    color: #495057;
}

table tbody tr:hover {
    background: #f8f9fa;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* Search & Filter */
.search-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-filter input {
    flex: 1;
    min-width: 200px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    background: white;
    margin: 50px auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.close:hover {
    color: #000;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding-top: 50px;
    }

    .sidebar h2 {
        font-size: 16px;
        padding: 0 15px 15px;
    }

    .sidebar ul li a {
        padding: 10px 15px;
        font-size: 14px;
    }

    .main-content {
        margin-left: 0;
        padding: 15px;
    }

    .top-bar {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        align-items: flex-start;
    }

    .top-bar h1 {
        font-size: 22px;
    }

    .user-info {
        width: 100%;
        justify-content: space-between;
        font-size: 14px;
    }

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

    .stat-card {
        padding: 20px;
    }

    .stat-card h3 {
        font-size: 12px;
        margin-bottom: 15px;
    }

    .stat-card .stat-icon {
        font-size: 32px;
    }

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

    .stats-grid-compact {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .user-info .user-name span {
        display: none;
    }

    .user-info {
        gap: 15px;
    }

    .user-info .logout-btn {
        padding: 8px 16px;
        font-size: 14px;
    }

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

    .stat-card-small .stat-label {
        font-size: 10px;
        margin-bottom: 10px;
    }

    .stat-card-small .stat-content {
        gap: 10px;
    }

    .stat-icon {
        font-size: 28px;
    }

    .stat-card-small .stat-value {
        font-size: 16px;
    }

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

    .content-box {
        padding: 20px;
        overflow-x: auto;
    }

    .content-box h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    table {
        font-size: 14px;
    }

    table th, table td {
        padding: 10px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }

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

.action-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #006600 0%, #004d00 100%);
    height: 60px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mobile-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 15px;
}

.mobile-menu-toggle {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.mobile-header-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
    flex: 1;
    text-align: center;
    margin: 0 10px;
}

.mobile-profile-icon {
    position: relative;
}

.profile-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    font-weight: 600;
    border: 2px solid rgba(255,255,255,0.4);
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
}

.profile-circle img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    .mobile-header {
        display: block;
    }
    
    .top-bar {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
        padding: 15px;
    }
    
    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        width: 280px;
        height: 100vh;
        transition: left 0.3s ease;
        z-index: 1001;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        min-width: 600px;
    }
}

/* Mobile Enhancements */
.profile-dropdown {
    position: relative;
    cursor: pointer;
}

.profile-dropdown-menu {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 180px;
    z-index: 1000;
}

.profile-dropdown-menu.active {
    display: block;
}

.profile-dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 1px solid #f0f0f0;
}

.profile-dropdown-menu a:last-child {
    border-bottom: none;
    color: #dc3545;
}

.profile-dropdown-menu a:hover {
    background: #f8f9fa;
}

.welcome-card {
    background: linear-gradient(135deg, #006600 0%, #004d00 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.welcome-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.welcome-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.welcome-card .welcome-icon {
    font-size: 36px;
}

.welcome-card .welcome-text h2 {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.85;
    margin-bottom: 3px;
}

.welcome-card .welcome-text p {
    font-size: 18px;
    font-weight: 700;
}

.welcome-balances {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 15px 20px;
}

.eye-toggle {
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
    margin-left: 10px;
}

.eye-toggle:hover {
    background: rgba(255,255,255,0.25);
}

.balance-item {
    flex: 1;
    text-align: center;
}

.balance-label {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 6px;
    font-weight: 500;
}

.balance-value {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.balance-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.3);
    margin: 0 15px;
}

.contribution-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 12px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.contribution-card h4 {
    color: #2c3e50;
    font-size: 15px;
    margin-bottom: 8px;
}

.contribution-card .amount {
    color: #28a745;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
}

.contribution-card .date {
    color: #6c757d;
    font-size: 13px;
}

.announcement-accordion {
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.announcement-header {
    padding: 15px;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.announcement-header:hover {
    background: #e9ecef;
}

.announcement-header h4 {
    color: #2c3e50;
    font-size: 15px;
    font-weight: 600;
}

.announcement-header .toggle-icon {
    font-size: 20px;
    color: #6c757d;
    transition: transform 0.3s;
}

.announcement-header.active .toggle-icon {
    transform: rotate(180deg);
}

.announcement-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.announcement-body.active {
    max-height: 500px;
}

.announcement-body .content {
    padding: 15px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.announcement-body .date {
    padding: 0 15px 15px;
    color: #999;
    font-size: 12px;
}

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

.sidebar-drawer-overlay.active {
    display: block;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .stat-card {
        padding: 15px !important;
    }
    
    .stat-card h3 {
        font-size: 10px !important;
        margin-bottom: 10px !important;
    }
    
    .stat-card .stat-icon {
        font-size: 28px !important;
    }
    
    .stat-card .stat-value {
        font-size: 18px !important;
    }
    
    .stat-card .stat-content {
        gap: 8px !important;
    }
    
    .top-bar {
        padding: 15px 60px !important;
        justify-content: center !important;
    }
    
    .top-bar > div:first-child {
        display: none !important;
    }
    
    .user-info {
        position: absolute !important;
        right: 15px !important;
    }
    
    .user-info .user-name {
        display: none !important;
    }
    
    .user-info .logout-btn {
        display: none !important;
    }
    
    .welcome-card {
        padding: 18px;
    }
    
    .dashboard-grid {
        gap: 15px;
    }
    
    .content-box {
        padding: 18px !important;
    }
    
    .content-box h2 {
        font-size: 18px !important;
        margin-bottom: 18px !important;
    }
}

/* Savings & Loans */
.savings-loans-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.savings-card, .loans-card {
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.savings-card {
    background: linear-gradient(135deg, #1a9e5c 0%, #0d7a45 100%);
    color: white;
}

.loans-card {
    background: linear-gradient(135deg, #3a7bd5 0%, #1a5cb8 100%);
    color: white;
}

.sl-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.sl-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.85;
    margin-bottom: 4px;
    font-weight: 600;
}

.sl-value {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 3px;
}

.sl-sub {
    font-size: 11px;
    opacity: 0.75;
}

@media (max-width: 768px) {
    .savings-loans-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .savings-card, .loans-card {
        padding: 15px;
        gap: 10px;
    }

    .sl-icon {
        font-size: 28px;
    }

    .sl-value {
        font-size: 16px;
    }

    .sl-label {
        font-size: 10px;
    }

    .sl-sub {
        font-size: 10px;
    }
}

/* Events */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    transition: all 0.2s;
}

.event-card.past {
    border-left-color: #6c757d;
    opacity: 0.85;
}

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

.event-date-badge {
    background: #667eea;
    color: white;
    border-radius: 8px;
    padding: 8px 12px;
    text-align: center;
    min-width: 52px;
    flex-shrink: 0;
}

.past-badge {
    background: #6c757d;
}

.event-day {
    display: block;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.event-month {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.event-info {
    flex: 1;
    min-width: 0;
}

.event-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 4px;
}

.event-desc {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.event-attendance {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .event-card {
        padding: 12px;
        gap: 12px;
    }

    .event-date-badge {
        padding: 6px 10px;
        min-width: 46px;
    }

    .event-day {
        font-size: 18px;
    }

    .event-title {
        font-size: 14px;
    }

    .event-meta {
        flex-direction: column;
        gap: 3px;
    }
}

/* Fines */
.fines-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fine-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    background: #f8f9fa;
    transition: all 0.2s;
}

.fine-card.unpaid {
    border-left: 4px solid #dc3545;
}

.fine-card.paid {
    border-left: 4px solid #28a745;
    opacity: 0.85;
}

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

.fine-amount-badge {
    border-radius: 8px;
    padding: 8px 12px;
    text-align: center;
    min-width: 80px;
    flex-shrink: 0;
    color: white;
    display: flex;
    flex-direction: column;
}

.fine-amount-badge span:first-child {
    font-size: 10px;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fine-amount {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.unpaid-badge { background: #dc3545; }
.paid-badge   { background: #28a745; }

.fine-info {
    flex: 1;
    min-width: 0;
}

.fine-reason {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    margin-bottom: 5px;
}

.fine-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: #6c757d;
}

@media (max-width: 768px) {
    .fine-card {
        padding: 12px;
        gap: 12px;
    }

    .fine-amount-badge {
        min-width: 70px;
        padding: 6px 10px;
    }

    .fine-amount {
        font-size: 14px;
    }

    .fine-reason {
        font-size: 13px;
    }

    .fine-meta {
        flex-direction: column;
        gap: 3px;
    }
}

/* Contributions */
.contributions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contribution-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border-radius: 10px;
    background: #f8f9fa;
    transition: all 0.2s;
}

.contrib-paid    { border-left: 4px solid #28a745; }
.contrib-unpaid  { border-left: 4px solid #ffc107; }
.contrib-overdue { border-left: 4px solid #dc3545; background: #fff8f8; }
.contrib-closed  { border-left: 4px solid #6c757d; opacity: 0.85; }

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

.contrib-left {
    flex-shrink: 0;
}

.contrib-icon {
    font-size: 28px;
}

.contrib-info {
    flex: 1;
    min-width: 0;
}

.contrib-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contrib-desc {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.contrib-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: #6c757d;
}

.contrib-right {
    flex-shrink: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.contrib-amount {
    font-size: 14px;
    font-weight: 700;
}

.paid-amount { color: #28a745; }

@media (max-width: 768px) {
    .contribution-item {
        padding: 12px;
        gap: 10px;
    }

    .contrib-icon {
        font-size: 22px;
    }

    .contrib-title {
        font-size: 13px;
    }

    .contrib-meta {
        flex-direction: column;
        gap: 3px;
        font-size: 11px;
    }

    .contrib-amount {
        font-size: 13px;
    }
}

/* Profile Page */
.profile-card {
    background: linear-gradient(135deg, #006600 0%, #004d00 100%);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: white;
}

.profile-avatar-wrap {
    flex-shrink: 0;
}

.profile-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.4);
}

.profile-avatar-initials {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 3px solid rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: white;
}

.profile-card-info h2 {
    font-size: 20px;
    margin-bottom: 4px;
}

.profile-card-info p {
    font-size: 14px;
    opacity: 0.85;
}

.profile-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.profile-info-card {
    background: white;
    border-radius: 10px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.pi-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.pi-label {
    font-size: 11px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    font-weight: 600;
}

.pi-value {
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    word-break: break-word;
}

@media (max-width: 768px) {
    .profile-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .profile-form-grid {
        grid-template-columns: 1fr;
    }

    .profile-form-grid .form-group[style] {
        grid-column: auto;
    }

    .profile-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-card-info h2 {
        font-size: 18px;
    }
}

/* Bottom Navigation */
.bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #006600 0%, #004d00 100%);
        border-top: none;
        z-index: 998;
        box-shadow: 0 -4px 15px rgba(0,0,0,0.15);
        padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
    }

    .main-content {
        padding-bottom: 80px !important;
    }

    .bottom-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: rgba(255,255,255,0.6);
        padding: 6px 4px;
        transition: all 0.2s;
        position: relative;
        gap: 3px;
    }

    .bottom-nav-item.active {
        color: white;
    }

    .bottom-nav-item.active::before {
        content: '';
        position: absolute;
        top: 0;
        left: 20%;
        right: 20%;
        height: 3px;
        background: white;
        border-radius: 0 0 4px 4px;
    }

    .bottom-nav-icon {
        font-size: 22px;
        line-height: 1;
        transition: transform 0.2s;
    }

    .bottom-nav-item.active .bottom-nav-icon {
        transform: scale(1.2);
    }

    .bottom-nav-label {
        font-size: 10px;
        font-weight: 500;
        letter-spacing: 0.3px;
        color: inherit;
    }
}

/* Fullscreen Toggle */
.fullscreen-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

.fullscreen-btn:hover {
    background: rgba(255,255,255,0.25);
}

@media (max-width: 768px) {
    .fullscreen-btn {
        display: none;
    }
}
