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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.header-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(135deg, #1a5f3f 0%, #2d8659 100%);
    z-index: -1;
}

.main-header {
    padding: 20px 20px 40px;
    color: white;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.college-info h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
}

.college-info p {
    font-size: 16px;
    opacity: 0.9;
}

.logo-circle {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.main-content {
    flex: 1;
    padding: 0 20px 80px;
    margin-top: -20px;
}

.payment-summary-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.payment-summary-card .label {
    color: #666;
    font-size: 14px;
    margin-bottom: 16px;
}

.amount-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 24px;
    gap: 8px;
}

.amount-value {
    font-size: 36px;
    font-weight: 700;
    color: #1a5f3f;
}

.currency {
    font-size: 18px;
    color: #666;
}

.transactions-count {
    font-size: 12px;
    color: #999;
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 12px;
}

.make-payment-btn {
    width: 100%;
    background: linear-gradient(135deg, #1a5f3f 0%, #2d8659 100%);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.make-payment-btn:active {
    transform: scale(0.98);
}

.transaction-categories {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.category-card {
    flex: 1;
    background: white;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.icon-circle {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1a5f3f 0%, #2d8659 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: white;
    font-size: 16px;
}

.category-card .count {
    font-size: 24px;
    font-weight: 700;
    color: #1a5f3f;
    margin-bottom: 4px;
}

.category-card .label {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.recent-transactions {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.recent-transactions h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 16px;
}

.transaction-item {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.icon-box {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    color: #1a5f3f;
}

.transaction-details {
    flex: 1;
}

.transaction-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.transaction-date {
    font-size: 12px;
    color: #999;
}

.transaction-amount {
    font-size: 16px;
    font-weight: 600;
    color: #1a5f3f;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-around;
    padding: 12px 0 20px;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #999;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-item.active {
    color: #1a5f3f;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

/* iOS Safari safe area support */
@supports (-webkit-touch-callout: none) {
    .bottom-nav {
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
    .make-payment-btn:hover {
        background: linear-gradient(135deg, #1a5f3f 0%, #2d8659 100%);
    }
    
    .nav-item:active {
        transform: scale(0.95);
    }
}
