/* --- Base Styles --- */
:root {
    --primary-blue: #009ef7;
    --success-green: #50cd89;
    --danger-red: #f1416c;
    --bg-light: #f5f8fa;
    --text-dark: #181c32;
    --card-shadow: 0 0 20px 0 rgba(76, 87, 125, 0.02);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    padding: 20px;
}

.app-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Summary Cards --- */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    text-align: center;
}

.stat-card p {
    color: #a1a5b7;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0 0 10px 0;
}

.stat-card h3 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--text-dark);
}

#stat-advance { color: var(--success-green); }
#stat-pending { color: var(--danger-red); }

/* --- Buttons --- */
.btn-add {
    background-color: var(--primary-blue);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-add:hover { background-color: #0086d1; }

/* --- Table Styles --- */
.data-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead { background-color: #f9fafb; }

th {
    text-align: left;
    padding: 15px;
    color: #a1a5b7;
    font-size: 0.85rem;
    text-transform: uppercase;
    border-bottom: 1px solid #eff2f5;
}

td {
    padding: 15px;
    border-bottom: 1px solid #eff2f5;
    font-size: 0.95rem;
}

tr:hover { background-color: #fcfcfc; }

/* --- Modal Styles --- */
.modal {
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 5px;
    border: 1px solid #e1e3ea;
    border-radius: 6px;
    box-sizing: border-box;
}

form input:focus {
    border-color: var(--primary-blue);
    outline: none;
}