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

:root {
    --primary-color: #f6cc38;
    --primary-dark: #e6b832;
    --bg-dark: #0f172a;
    --bg-slate-800: #1e293b;
    --bg-slate-700: #334155;
    --bg-slate-600: #475569;
    --text-light: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --green: #4ade80;
    --green-dark: #22c55e;
    --red: #f87171;
    --red-dark: #ef4444;
    --blue: #60a5fa;
    --blue-dark: #3b82f6;
    --purple: #a78bfa;
    --orange: #fb923c;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    color: var(--text-light);
    min-height: 100vh;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hidden {
    display: none !important;
}

/* Login Screen */
.login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-slate-800) 100%);
    position: relative;
    overflow: hidden;
}

.login-screen::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(246, 204, 56, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.login-container {
    background: linear-gradient(135deg, var(--bg-slate-800) 0%, rgba(30, 41, 59, 0.95) 100%);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 
                0 0 0 1px rgba(255, 255, 255, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 420px;
    text-align: center;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-logo {
    width: 150px;
    height: auto;
    margin-bottom: 1rem;
    background: white;
    padding: 1rem;
    border-radius: 8px;
}

.login-container h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-slate-700);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(246, 204, 56, 0.1);
}

.btn-primary {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--bg-dark);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(246, 204, 56, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(246, 204, 56, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.error-message {
    color: var(--red);
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.login-hint {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Main App */
.app-container {
    display: flex;
    min-height: 100vh;
}

.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 50;
    padding: 0.5rem;
    background: var(--bg-slate-800);
    border: none;
    border-radius: 8px;
    color: var(--text-light);
    cursor: pointer;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 256px;
    height: 100vh;
    background: var(--bg-slate-800);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    z-index: 40;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-logo {
    width: 128px;
    height: auto;
    margin: 0 auto 0.5rem;
    background: white;
    padding: 0.5rem;
    border-radius: 8px;
}

.sidebar-subtitle {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 600;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.sidebar-btn:hover {
    background: var(--bg-slate-700);
    color: var(--text-light);
}

.sidebar-btn.active {
    background: var(--primary-color);
    color: var(--bg-dark);
    box-shadow: 0 4px 12px rgba(246, 204, 56, 0.3);
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 256px;
    padding: 2rem;
    transition: margin-left 0.3s;
}

.view {
    max-width: 1400px;
}

.view-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-light);
}

/* Cash Summary Container */
.cash-summary-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cash-summary-card {
    background: linear-gradient(135deg, var(--bg-slate-800) 0%, rgba(30, 41, 59, 0.95) 100%);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.05);
    border-left: 6px solid;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cash-summary-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.cash-summary-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.1);
}

.cash-summary-card:hover::after {
    opacity: 1;
}

.cash-summary-card.daily {
    border-left-color: var(--green);
    background: linear-gradient(135deg, var(--bg-slate-800) 0%, rgba(74, 222, 128, 0.1) 100%);
}

.cash-summary-card.monthly {
    border-left-color: var(--blue);
    background: linear-gradient(135deg, var(--bg-slate-800) 0%, rgba(96, 165, 250, 0.1) 100%);
}

.cash-summary-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cash-summary-icon {
    padding: 0.875rem;
    background: var(--bg-slate-700);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cash-summary-card.daily .cash-summary-icon {
    color: var(--green);
}

.cash-summary-card.monthly .cash-summary-icon {
    color: var(--blue);
}

.cash-summary-title h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-light);
    margin: 0 0 0.25rem 0;
}

.cash-summary-title p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

.cash-summary-amount {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cash-amount {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--text-light) 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.cash-summary-card.daily .cash-amount {
    color: var(--green);
}

.cash-summary-card.monthly .cash-amount {
    color: var(--blue);
}

.cash-count {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--bg-slate-800) 0%, rgba(30, 41, 59, 0.9) 100%);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    border-left: 5px solid;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.1);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card.amber { border-left-color: var(--primary-color); }
.stat-card.green { border-left-color: var(--green); }
.stat-card.red { border-left-color: var(--red); }
.stat-card.blue { border-left-color: var(--blue); }
.stat-card.purple { border-left-color: var(--purple); }

.stat-icon {
    padding: 1rem;
    background: linear-gradient(135deg, var(--bg-slate-700) 0%, var(--bg-slate-600) 100%);
    border-radius: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    position: relative;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.stat-content h3 {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-content p.stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-light) 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Ajuste especial para la tarjeta de Ingresos Estimados */
.stat-card.blue .stat-content p {
    font-size: 1.5rem;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .stat-card.blue {
        min-width: 280px;
    }
    
    .stat-card.blue .stat-content p {
        font-size: 1.75rem;
    }
}

/* Alerts Section */
.alerts-section {
    background: linear-gradient(135deg, var(--bg-slate-800) 0%, rgba(30, 41, 59, 0.95) 100%);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(246, 204, 56, 0.2);
}

.alerts-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-light);
}

.alerts-title svg {
    color: var(--primary-color);
}

/* Daily Payments Section */
.daily-payments-section {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.1) 0%, var(--bg-slate-800) 100%);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(74, 222, 128, 0.2);
    margin-bottom: 2rem;
    border: 1px solid rgba(74, 222, 128, 0.2);
}

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

.payments-section:last-child {
    margin-bottom: 0;
}

.dashboard-section {
    background: linear-gradient(135deg, var(--bg-slate-800) 0%, rgba(30, 41, 59, 0.95) 100%);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-light);
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.section-title svg {
    color: var(--primary-color);
}

.daily-payments-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-light);
}

.daily-payments-title svg {
    color: var(--green);
}

/* Cash View */
.cash-view-container {
    max-width: 1400px;
}

.cash-detail-section {
    background: var(--bg-slate-800);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.cash-detail-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-light);
}

.cash-detail-title svg {
    color: var(--primary-color);
}

.payments-subsection {
    margin-top: 1rem;
}

.status-badge.paid {
    background: rgba(74, 222, 128, 0.2);
    color: var(--green);
}

/* Enhanced Cash Cards */
.cash-summary-card.enhanced {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-slate-800) 0%, rgba(30, 41, 59, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cash-summary-card.enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0.3;
}

.cash-summary-card.daily.enhanced::before {
    background: linear-gradient(90deg, transparent, var(--green), transparent);
}

.cash-summary-card.monthly.enhanced::before {
    background: linear-gradient(90deg, transparent, var(--blue), transparent);
}

.cash-summary-icon.enhanced-icon {
    background: linear-gradient(135deg, var(--bg-slate-700), var(--bg-slate-600));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: scale(1.1);
}

.cash-progress {
    margin: 1rem 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-slate-700);
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

.progress-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.cash-expected {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(246, 204, 56, 0.1);
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.member-card.cash-card {
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.member-card.cash-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.btn-mark-paid, .btn-mark-paid-small {
    transition: all 0.2s;
}

.btn-mark-paid:hover, .btn-mark-paid-small:hover {
    background: #22c55e !important;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.btn-mark-unpaid, .btn-mark-unpaid-small {
    transition: all 0.2s;
}

.btn-mark-unpaid:hover, .btn-mark-unpaid-small:hover {
    background: var(--bg-slate-600) !important;
    border-color: var(--primary-color) !important;
}

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

.table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
}

.table thead {
    border-bottom: 1px solid var(--border-color);
}

.table th {
    padding: 1rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table td {
    padding: 1rem;
    color: var(--text-light);
}

.table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.table tbody tr:hover {
    background: var(--bg-slate-700);
}

.table tbody tr.expired {
    background: rgba(248, 113, 113, 0.1);
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.expired {
    background: rgba(248, 113, 113, 0.2);
    color: var(--red);
}

.status-badge.pending {
    background: rgba(246, 204, 56, 0.2);
    color: var(--primary-color);
}

.btn-delete {
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: var(--red);
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s;
}

.btn-delete:hover {
    background: rgba(248, 113, 113, 0.2);
}

/* Members Cards (Mobile) */
.members-cards {
    display: none;
    flex-direction: column;
    gap: 1rem;
}

.member-card {
    background: linear-gradient(135deg, var(--bg-slate-700) 0%, rgba(51, 65, 85, 0.9) 100%);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2),
                0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.member-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.1);
    border-color: rgba(246, 204, 56, 0.3);
}

.member-card.expired {
    border: 2px solid var(--red);
}

.member-card.alert-expired {
    border-left: 4px solid var(--red);
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.1) 0%, var(--bg-slate-700) 100%);
}

.member-card.alert-warning {
    border-left: 4px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(246, 204, 56, 0.1) 0%, var(--bg-slate-700) 100%);
}

.status-badge.warning {
    background: rgba(246, 204, 56, 0.2);
    color: var(--primary-color);
}

.member-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.member-card-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    font-size: 0.875rem;
}

.member-card-info p {
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.member-card-info span {
    color: var(--text-light);
    font-weight: 500;
}

/* Search */
.search-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-container svg {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-container input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    background: var(--bg-slate-700);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
}

.search-container input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(246, 204, 56, 0.1);
}

/* Form */
.form-container {
    max-width: 640px;
    margin: 0 auto;
    background: var(--bg-slate-800);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.required {
    color: var(--red);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-light);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-label span {
    user-select: none;
}

.btn-submit {
    margin-top: 1rem;
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    background: var(--bg-slate-700);
    color: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: var(--bg-slate-600);
    border-color: var(--primary-color);
    color: var(--text-light);
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.modal-content {
    background: linear-gradient(135deg, var(--bg-slate-800) 0%, rgba(30, 41, 59, 0.95) 100%);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.05);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--bg-slate-700);
    color: var(--text-light);
    transform: rotate(90deg);
}

.modal-content form {
    padding: 2rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.modal-actions .btn-primary,
.modal-actions .btn-secondary {
    width: auto;
    min-width: 120px;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-danger {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(248, 113, 113, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(248, 113, 113, 0.4);
}

.member-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.member-card-actions .btn-sm {
    flex: 1;
    min-width: 80px;
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .sidebar {
        transform: translateX(-100%);
    }

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

    .main-content {
        margin-left: 0;
        padding: 1rem;
        padding-top: 4rem;
    }

    .members-cards {
        display: flex;
    }

    .table-container {
        display: none;
    }

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

    .cash-summary-container {
        grid-template-columns: 1fr;
    }

    .cash-summary-card {
        padding: 1.5rem;
    }

    .cash-amount {
        font-size: 2rem;
    }

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


