body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #eef2f7;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: auto;
}

h1 {
    text-align: center;
    color: #0a3d62;
    margin-bottom: 5px;
}

.subtitle {
    text-align: center;
    margin-bottom: 25px;
    color: #555;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.card h2 {
    margin-top: 0;
    border-left: 5px solid #0a3d62;
    padding-left: 10px;
    color: #0a3d62;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

input, select, textarea {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
    width: 100%;
}

textarea {
    grid-column: span 2;
    resize: none;
    height: 70px;
}

label {
    font-weight: 600;
    margin-top: 10px;
    display: block;
}

.declaration {
    background: #f9fafc;
    font-size: 14px;
}

.pay-btn {
    width: 100%;
    padding: 15px;
    background: #1e7e34;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.pay-btn:hover {
    background: #145c25;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px; /* small space between box and text */
    font-size: 14px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
}

/* Auth Pages (Login & Register) */
.auth-box {
    max-width: 400px;
    margin: 60px auto;
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #0a3d62;
}

.auth-box input,
.auth-box select,
.auth-box button {
    width: 100%;
    margin-bottom: 15px;
}

.auth-box button {
    padding: 12px;
    background: #0a3d62;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.auth-box button:hover {
    background: #074173;
}

.auth-box p {
    text-align: center;
    font-size: 14px;
}

/* Dashboard Info Layout */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 30px;
    margin-top: 10px;
}

.info-grid div {
    display: flex;
    flex-direction: column;
    background: #f9fbfd;
    padding: 10px 12px;
    border-radius: 6px;
}

.info-grid div span {
    font-size: 12px;
    color: #777;
    margin-bottom: 4px;
}

.info-grid div strong {
    font-size: 15px;
    color: #222;
    word-break: break-word;
}

.info-grid .full {
    grid-column: span 2;
}

/* Center items */
.center {
    text-align: center;
}

/* ID Photo */
.id-photo {
    width: 160px;
    border-radius: 8px;
    border: 3px solid #0a3d62;
    padding: 3px;
    background: white;
}

/* Paid badge */
.paid {
    color: #1e7e34;
    font-weight: bold;
}

/* Logout Button */
.logout-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #c0392b;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: 0.3s;
}

.logout-btn:hover {
    background: #922b21;
}

/* Mobile */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    .info-grid .full {
        grid-column: span 1;
    }
}


.admin-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.admin-card {
    aspect-ratio: 1 / 1; /* makes it square */
    border-radius: 10px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    text-align: center;
    transition: 0.3s;
}

.admin-card:hover {
    transform: translateY(-5px);
}

.admin-card h3 {
    margin: 0;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.admin-card p {
    font-size: 32px;
    font-weight: bold;
    margin-top: 8px;
}

/* Colors */
.admin-card.red {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
}

.admin-card.yellow {
    background: linear-gradient(135deg, #f39c12, #f1c40f);
}


.table-wrapper {
    overflow-x: auto;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.styled-table thead {
    background: #0a3d62;
    color: white;
}

.styled-table th, .styled-table td {
    padding: 12px 10px;
    text-align: left;
}

.styled-table th {
    font-weight: 600;
}

.styled-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: 0.2s;
}

.styled-table tbody tr:hover {
    background: #f4f8fb;
}

/* Status badges */
.paid-badge {
    background: #d4edda;
    color: #155724;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.pending-badge {
    background: #f8d7da;
    color: #721c24;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

/* View button */
.view-btn {
    background: #0a3d62;
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
}

.view-btn:hover {
    background: #074173;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }
    textarea {
        grid-column: span 1;
    }
}


.download-btn {
    display: inline-block;
    padding: 10px 18px;
    background: #2e7d32;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: 0.3s;
}

.download-btn:hover {
    background: #1b5e20;
}

.download-btn {
    background: green;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    margin-right: 10px;
    display: inline-block;
}

.download-btn:hover {
    background: darkgreen;
}

.success-box {
    text-align: center;
    padding: 40px;
}

.success-box h1 {
    color: green;
    margin-bottom: 20px;
}

.success-box button {
    padding: 10px 20px;
    font-size: 16px;
    background: #004080;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.success-box button:hover {
    background: #002b5c;
}
