/* --- GLOBAL RESET & BODY --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: 'Segoe UI', sans-serif; 
    background: #f4f4f4; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    padding-top: 25px; 
    padding-bottom: 50px;
    margin: 0;
}

/* --- TYPOGRAPHY --- */
h1 { color: #333; margin-bottom: 20px; font-size: 24px; margin-top: 0; }
h2 { color: #333; font-size: 18px; margin: 0; }
p { color: #333; margin-bottom: 15px; font-size: 12px; line-height: 1.5; font-weight: 500; }
p.subtitle { margin-bottom: 30px; }
small { color: #777; }

/* --- LAYOUT CARDS --- */
.card { 
    background: white; 
    padding: 15px; 
    border-radius: 8px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
    width: 95%; 
    text-align: center; 
    box-sizing: border-box;
    margin-top: 20px; 
}

.card-sm { max-width: 400px; padding: 40px 0; } 
.card-md { max-width: 500px; } 
.card-lg { max-width: 800px; } 

.status-red { display: inline-block; height: 3px; width: 3px; background-color: red; border-radius: 75%; }
.status-green { display: inline-block; height: 4px; width: 4px; background-color: green; border-radius: 75%; }

/* --- FORMS --- */
input[type="text"], 
input[type="password"], 
input[type="number"],
input[type="date"] { 
    padding: 12px; 
    width: 100%; 
    box-sizing: border-box; 
    border: 1px solid #ddd; 
    border-radius: 4px; 
    font-size: 14px; 
    margin-bottom: 20px; 
    text-align: center; 
    outline: none;
    transition: border 0.3s;
	background-color: #fafafa;
	font-family: 'Segoe UI', sans-serif; 
}
input:focus { border-color: #d32f2f; }

/* --- RADIO BUTTONS --- */
input[type="radio"] {
    accent-color: #d32f2f; /* Matches the primary action red */
    width: 12px;
    height: 12px;
    margin-right: 5px;
    margin-left: 10px;
    vertical-align: middle;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
	font-family: 'Segoe UI', sans-serif; 
}

input[type="radio"]:hover {
    transform: scale(1.1);
}

/* Ensures the text next to the radio button aligns properly */
input[type="radio"] + label,
input[type="radio"] + form {
    color: #555;
    font-size: 14px;
    vertical-align: middle;
    cursor: pointer;
}

/* --- BUTTONS --- */
button { 
    color: white; 
    border: none; 
    padding: 12px 24px; 
    font-size: 16px; 
    border-radius: 4px; 
    cursor: pointer; 
    transition: background 0.3s; 
    width: 50%; 
	font-family: 'Segoe UI', sans-serif; 
}

.btn-action {
    text-decoration: none; 
    background: #d32f2f; 
    color: white; 
    padding: 5px 15px;
    border-radius: 4px; 
    font-size: 14px;
}
.btn-action:hover { background: #b71c1c; }

.btn-sign { 
    text-decoration: none; 
    background: #fff; 
    color: #333; 
    border: 1px solid #999; 
    padding: 12px 24px; 
    font-size: 15px; 
    font-weight: 600;
    border-radius: 25px; 
    cursor: pointer; 
    transition: background 0.3s; 
    display: inline-flex;  
    align-items: center;   
    justify-content: center;
    margin-top: 10px;      
}
.btn-sign:hover { background: #f7f7f7; }

.btn-regen { 
    text-decoration: none; 
    background: #d32f2f; 
    color: white; 
    border: none; 
    padding: 12px 24px; 
    font-size: 14px; 
    border-radius: 4px; 
    cursor: pointer; 
    transition: background 0.3s; 
    width: 50%; 
}
.btn-regen:hover { background: #b71c1c; }

/* --- MENU (STICKY & HAMBURGER LOGIC) --- */
.admin-menu-container {
    width: 100%;
    display: flex;
    justify-content: center;
    position: sticky; 
    top: 20px;        
    z-index: 1000;    
}

/* Hide checkbox natively */
.menu-toggle { display: none; }

/* Hamburger Icon Styling */
.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    background: white;
    padding: 8px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    user-select: none;
}

.admin-menu {
    background: white;
    padding: 10px 15px;
    border-radius: 50px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: inline-flex;
    gap: 10px;
    align-items: center;
}
.admin-menu a {
    text-decoration: none;
    color: #555;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
}
.admin-menu a:hover {
    background: #f4f4f4;
    color: #d32f2f;
}
.admin-menu a.active {
    background: #d32f2f;
    color: white;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.4);
}
.admin-menu a.logout-btn {
    border: 1px solid #d32f2f;
    color: #d32f2f;
}
.admin-menu a.logout-btn:hover {
    background: #d32f2f;
    color: white;
}

/* Mobile Responsive Menu */
@media (max-width: 768px) {
    .hamburger { display: block; }
    .admin-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 50px;
        background: white;
        width: 90%;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
        padding: 15px;
    }
    .menu-toggle:checked ~ .admin-menu { display: flex; }
}

/* --- ALERTS & MESSAGES --- */
.success { color: #2e7d32; background: #e8f5e9; padding: 15px; border-radius: 4px; margin-bottom: 20px; text-align: left; font-size: 14px; border-left: 5px solid #2e7d32; }
.error { color: #c62828; background: #ffebee; padding: 10px; border-radius: 4px; margin-bottom: 20px; border-left: 5px solid #c62828; }

/* --- TABLES (List View) --- */
table { width: 100%; border-collapse: collapse; text-align: center; border: 1px solid #BBB; }
th { background-color: #f8f9fa; color: #333; font-size: 11px; font-weight: 600; padding: 10px; border-bottom: 2px solid #ddd; text-align: center; }
td { padding: 8px 10px; border-bottom: 1px solid #eee; font-size: 11px; color: #555; vertical-align: middle; text-align: center; }
tr:hover { background-color: #fcfcfc; }
.id-col { width: 50px; color: #888; }
.date-col { width: 140px; color: #888; }
.details-col { text-align: left !important; }
.empty-msg { padding: 20px; color: #999; font-style: italic; text-align: center; }
