/* === MODULE 7: ORGANIZER (FINANCE) === */

.finance-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

/* UI Card */
.finance-card-ui {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    width: 100%;
    max-width: 600px;
    font-family: 'Montserrat', sans-serif;
}

/* 1. Header */
.fin-header {
    background: #0f172a;
    padding: 15px 20px;
    border-bottom: 1px solid #334155;
    display: flex; justify-content: space-between; align-items: center;
}
.fin-date {
    font-weight: 700; color: #fff; display: flex; align-items: center; gap: 8px; font-size: 0.9rem;
}
.btn-remind-all {
    background: rgba(234, 179, 8, 0.1); border: 1px solid rgba(234, 179, 8, 0.3);
    color: #eab308; font-size: 0.75rem; padding: 6px 12px; border-radius: 6px;
    cursor: pointer; font-weight: 700; transition: all 0.2s;
}
.btn-remind-all:hover { background: rgba(234, 179, 8, 0.2); transform: translateY(-1px); }

/* 2. Stats Row */
.fin-stats-row {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1px; background: #334155; /* Grid lines color */
    border-bottom: 1px solid #334155;
}
.fin-stat-card {
    background: #1e293b; padding: 15px 10px; text-align: center;
}
.fs-label { font-size: 0.65rem; color: #94a3b8; text-transform: uppercase; font-weight: 700; margin-bottom: 4px; }
.fs-val { font-size: 1rem; font-weight: 800; color: #fff; }
.fs-val.good { color: #4ade80; } /* Green */
.fs-val.bad { color: #fbbf24; }  /* Amber for pending */
.fs-val.total { color: #94a3b8; }

/* 3. List Header */
.fin-list-header {
    display: flex; justify-content: space-between;
    padding: 10px 20px; background: #1e293b;
    font-size: 0.7rem; color: #64748b; font-weight: 700; text-transform: uppercase;
    border-bottom: 1px solid #334155;
}

/* 4. List Body */
.fin-list {
    max-height: 320px; overflow-y: auto;
    background: #0f172a;
}
.fin-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 20px; border-bottom: 1px solid #1e293b;
    transition: background 0.2s;
}
.fin-item:hover { background: #1e293b; }

.fi-left { display: flex; align-items: center; gap: 12px; }
.fi-avatar {
    width: 32px; height: 32px; background: #334155; border-radius: 50%;
    color: #fff; font-size: 0.7rem; display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.fi-name { font-size: 0.9rem; font-weight: 600; color: #e2e8f0; }

.fi-right { display: flex; align-items: center; gap: 15px; }

/* Status Badges */
.status-badge {
    font-size: 0.7rem; padding: 4px 8px; border-radius: 4px; font-weight: 700;
}
.status-badge.success { background: rgba(34, 197, 94, 0.1); color: #4ade80; }
.status-badge.wait { background: rgba(251, 191, 36, 0.1); color: #fbbf24; }

/* Action Buttons */
.btn-pay {
    background: #22c55e; border: none; color: #fff;
    padding: 6px 16px; border-radius: 6px; font-size: 0.75rem; font-weight: 700;
    cursor: pointer; transition: transform 0.1s;
}
.btn-pay:hover { background: #16a34a; }
.btn-pay:active { transform: scale(0.95); }

.btn-check {
    background: transparent; border: 1px solid #334155; color: #94a3b8;
    width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: default;
}
.btn-check.active {
    background: #22c55e; border-color: #22c55e; color: #fff;
}


/* Responsive */
@media (max-width: 900px) {
    .finance-block { flex-direction: column; gap: 30px; }
    .feature-visual { width: 100%; }
    .fin-stats-row { grid-template-columns: repeat(2, 1fr); gap: 1px; }
}