/* ===== TAK Self-Enrollment Portal Shared Styles ===== */

body {
    font-family: Arial, sans-serif;
    background-color: #f4f7fa;
    margin: 0;
    padding: 0;
    text-align: center;
}

.container {
    width: 90%;
    max-width: 900px;
    margin: 40px auto;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
}

.logo {
    max-width: 180px;
    margin-bottom: 20px;
}

/* ===== Headings ===== */
h2 {
    color: #333;
    margin-bottom: 20px;
}

/* ===== Forms ===== */
form {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

label {
    font-weight: bold;
    display: block;
    margin: 10px 0 5px;
}

input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* ===== Buttons ===== */
button,
a.btn {
    background-color: #0056b3;
    color: white;
    padding: 12px 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    display: block; /* full width */
    max-width: 300px; /* limit width */
    margin: 10px auto; /* center buttons */
    text-align: center;
}

button:hover,
a.btn:hover {
    background-color: #003f80;
}

/* ===== Special Button Colors ===== */
.logout {
    background: #dc3545;
}
.logout:hover {
    background: #a71d2a;
}

.approve {
    background: #28a745;
}
.approve:hover {
    background: #1e7e34;
}

.reject {
    background: #dc3545;
}
.reject:hover {
    background: #a71d2a;
}

.download-link {
    background-color: #28a745;
}
.download-link:hover {
    background-color: #1e7e34;
}

/* ===== Tables ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th {
    background-color: #0056b3;
    color: white;
    padding: 10px;
    text-align: left;
}

td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

tr:hover {
    background-color: #f1f1f1;
}

/* ===== QR Code Styling ===== */
.qr-img {
    width: 300px;
    height: 300px;
    margin-bottom: 20px;
    border: 2px solid #ddd;
    border-radius: 10px;
}

/* ===== QR Code Page ===== */
.qr-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px;
}

/* Action button group inside table cells */
.action-buttons {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

@media (max-width: 600px) {
    .action-buttons {
        flex-direction: column;
    }
}

