/* zzz-style.css */

/* --- 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; /* Space for the sticky menu */
    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; /* Space between menu and card */
}

/* Card Sizes */
/* UPDATED: Added padding and slightly reduced max-width for a cleaner login look */
.card-sm { max-width: 400px; padding: 40px 0; } 
.card-md { max-width: 500px; } /* Rewrite/Image Forms */
.card-lg { max-width: 800px; } /* List/Logs */

.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"] { 
    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;
}
input:focus { border-color: #d32f2f; }

/* --- BUTTONS --- */
button { 
    color: white; 
    border: none; 
    padding: 12px 24px; 
    font-size: 16px; 
    border-radius: 4px; 
    cursor: pointer; 
    transition: background 0.3s; 
    width: 50%; /* Default full width for mobile feel */
}

/* Action Button Variant (for Lists/Refresh) */
.btn-action {
    text-decoration: none; 
    background: #d32f2f; 
    color: white; 
    padding: 5px 15px;
    border-radius: 4px; 
    font-size: 14px;
}
.btn-action:hover { background: #b71c1c; }

/* UPDATED: Flexbox for icon alignment and Margin for spacing */
.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;  /* Ensures icon and text align */
    align-items: center;   /* Vertically centers content */
    justify-content: center;
    margin-top: 10px;      /* Pushes button away from the text above */
}
.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%; /* Default full width for mobile feel */
}
.btn-regen:hover { background: #b71c1c; }

/* --- MENU (STICKY) --- */
.admin-menu-container {
    width: 100%;
    display: flex;
    justify-content: center;
    position: sticky; /* Makes it stick */
    top: 20px;        /* Distance from top */
    z-index: 1000;    /* Stays above content */
}
.admin-menu {
    background: white;
    padding: 10px 15px;
    border-radius: 50px; /* Pill shape */
    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;
}

/* --- 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: left;
	border: 1px solid #BBB;
	border-collapse: collapse;
}
th {
    background-color: #f8f9fa;
    color: #333;
    font-size: 11px;
    font-weight: 600;
    padding: 10px;
    border-bottom: 2px solid #ddd;
}
td {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    font-size: 11px;
    color: #555;
    vertical-align: middle;
}
tr:hover { background-color: #fcfcfc; }
.id-col { width: 50px; text-align: center; color: #888; }
.date-col { width: 140px; color: #888; text-align: center; }
.id-words { width: 50px; text-align: center; color: #888; }
.empty-msg { padding: 20px; color: #999; font-style: italic; text-align: center; }

/* --- LOG WINDOW (Register View) --- */
.log-window {
    background: #fafafa;
    color: #333;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
    text-align: left;
    padding: 20px;
    border-radius: 6px;
    height: 600px;
    overflow-y: auto;
    border: 1px solid #ddd;
    line-height: 1.5;
}

.log-window p { 
	margin-bottom: 15px;
	font-size: 12px;
}

/* Utility */
.flex-header {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 15px;
}
