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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.header {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.5rem;
}

.header-nav {
    margin-top: 0.6rem;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-start;
}

.nav-link {
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    background: #f1f5f9;
}

.nav-link:hover {
    background: #e2e8f0;
}

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

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: #f1f5f9;
    border-radius: 8px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #059669;
}

.stat-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #0f172a;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.task-card {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.task-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.task-card.pending {
    border-left: 4px solid var(--accent, #f59e0b);
}

.task-card.completed {
    border-left: 4px solid #059669;
    opacity: 0.7;
    filter: grayscale(6%);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.task-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.paid {
    background: #d1fae5;
    color: #065f46;
}

.task-description {
    color: #64748b;
    margin-bottom: 1rem;
}

.task-type {
    font-size: 0.8rem;
    color: var(--accent, #6366f1);
    font-weight: 500;
    margin-bottom: 1rem;
}

.institution-group {
    margin-bottom: 2rem;
}

.institution-group h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.institution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.institution-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

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

.institution-card.paid {
    border-left: 4px solid #059669;
}

.institution-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.institution-code {
    background: #1e293b;
    color: white;
    padding: 0.5rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 40px;
    text-align: center;
}

.institution-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: #059669;
    margin-bottom: 0.5rem;
}

.institution-type {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.action-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-btn.primary {
    background: #059669;
    color: white;
}

.action-btn.primary:hover {
    background: #047857;
}

.action-btn.secondary {
    background: #f1f5f9;
    color: #475569;
}

.action-btn.secondary:hover {
    background: #e2e8f0;
}

.action-btn.complete {
    background: #f59e0b;
    color: white;
    width: 100%;
}

.action-btn.complete:hover {
    background: #d97706;
}

.transfers-section {
    grid-column: 1 / -1;
}

.transfer-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.account-summary {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
}

.account-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.account-item:last-child {
    border-bottom: none;
}

.account-name {
    font-weight: 500;
}

.account-balance {
    font-weight: 700;
    font-size: 1.1rem;
}

.account-balance.positive {
    color: #059669;
}

.account-balance.neutral {
    color: #64748b;
}

.tabs-container {
    width: 100%;
}

.tabs-header {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.tab-button {
    padding: 1rem 1.5rem;
    border: none;
    background: none;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.tab-button:hover {
    color: #059669;
}

.tab-button.active {
    color: #059669;
    border-bottom-color: #059669;
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.micro-section {
    font-family: 'Noto Sans', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    padding: 1.5rem;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,250,251,0.98));
    box-shadow: 0 6px 18px rgba(16,24,40,0.04);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.micro-section:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(16,24,40,0.06); }

.micro-section h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.15rem;
    color: #0f172a;
    margin-bottom: 0.9rem;
}

.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 9px;
    background: #f1f5f9;
    color: #0f172a;
    box-shadow: 0 2px 6px rgba(2,6,23,0.04);
    transition: transform 0.16s cubic-bezier(.2,.9,.2,1);
}
.icon-wrapper svg { width: 18px; height: 18px; color: #094b33; }

.micro-section:hover .icon-wrapper { transform: translateY(-3px); }

.micro-section ol, .micro-section ul {
    margin-left: 1.1rem;
    color: #475569;
    line-height: 1.5;
}

.micro-section p, .micro-section li {
    color: #475569;
    margin-bottom: 0.5rem;
    font-size: 0.96rem;
}

.micro-section h3 { margin-top: 0.6rem; color: #1f2937; font-size: 1rem; }