/* ============================================================
   DataMod - Irish Waste Care
   Stylesheet
   ============================================================ */
 
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
 
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 15px;
    background-color: #f0f2f5;
    color: #2c3e50;
}
 
/* ---- HEADER ---- */
.header {
    background-color: #1a5276;
    color: white;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
 
.header-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
 
.header-subtitle {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 2px;
}
 
.header-user {
    font-size: 13px;
    opacity: 0.9;
    text-align: right;
}
 
.header-user a {
    color: #aed6f1;
    text-decoration: none;
    margin-left: 16px;
}
 
.header-user a:hover {
    color: white;
    text-decoration: underline;
}
 
/* ---- MAIN CONTENT ---- */
.container {
    max-width: 1100px;
    margin: 28px auto;
    padding: 0 20px;
}
 
.page-title {
    font-size: 22px;
    font-weight: 600;
    color: #1a5276;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a5276;
}
 
/* ---- CARDS ---- */
.card {
    background: white;
    border-radius: 6px;
    border: 1px solid #d5d8dc;
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
 
.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a5276;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eaecee;
}
 
/* ---- MENU GRID ---- */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 10px;
}
 
.menu-card {
    background: white;
    border: 1px solid #d5d8dc;
    border-radius: 6px;
    padding: 24px 20px;
    text-align: center;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
 
.menu-card:hover {
    border-color: #1a5276;
    box-shadow: 0 3px 8px rgba(26,82,118,0.15);
    transform: translateY(-2px);
    color: #1a5276;
}
 
.menu-card-icon {
    font-size: 32px;
    margin-bottom: 10px;
}
 
.menu-card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}
 
.menu-card-desc {
    font-size: 12px;
    color: #7f8c8d;
    line-height: 1.4;
}
 
.menu-section-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #7f8c8d;
    margin: 24px 0 10px;
}
 
/* ---- LOGIN ---- */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a5276 0%, #2e86c1 100%);
}
 
.login-box {
    background: white;
    border-radius: 8px;
    padding: 40px 44px;
    width: 380px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
 
.login-logo {
    text-align: center;
    margin-bottom: 28px;
}
 
.login-logo-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a5276;
    line-height: 1.2;
}
 
.login-logo-sub {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 4px;
}
 
/* ---- FORMS ---- */
.form-group {
    margin-bottom: 16px;
}
 
label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #5d6d7e;
    margin-bottom: 5px;
}
 
input[type="text"],
input[type="password"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    color: #2c3e50;
    background: white;
    transition: border-color 0.2s;
}
 
input[type="text"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #1a5276;
    box-shadow: 0 0 0 3px rgba(26,82,118,0.1);
}
 
textarea {
    min-height: 80px;
    resize: vertical;
}
 
/* ---- BUTTONS ---- */
.btn {
    display: inline-block;
    padding: 9px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.2s;
}
 
.btn-primary {
    background-color: #1a5276;
    color: white;
}
 
.btn-primary:hover {
    background-color: #154360;
    color: white;
}
 
.btn-secondary {
    background-color: #eaecee;
    color: #2c3e50;
}
 
.btn-secondary:hover {
    background-color: #d5d8dc;
}
 
.btn-success {
    background-color: #1e8449;
    color: white;
}
 
.btn-success:hover {
    background-color: #196f3d;
    color: white;
}
 
.btn-danger {
    background-color: #922b21;
    color: white;
}
 
.btn-danger:hover {
    background-color: #7b241c;
    color: white;
}
 
.btn-sm {
    padding: 5px 12px;
    font-size: 12px;
}
 
.btn-full {
    width: 100%;
    text-align: center;
}
 
/* ---- TABLES ---- */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
 
thead th {
    background-color: #1a5276;
    color: white;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
}
 
tbody tr {
    border-bottom: 1px solid #eaecee;
}
 
tbody tr:hover {
    background-color: #eaf4fb;
}
 
tbody td {
    padding: 9px 12px;
    vertical-align: middle;
}
 
/* ---- BADGES ---- */
.badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}
 
.badge-glen    { background: #d4efdf; color: #1e8449; }
.badge-audrey  { background: #d6eaf8; color: #1a5276; }
.badge-general { background: #fdebd0; color: #935116; }
.badge-admin   { background: #1a5276; color: white; }
.badge-operator{ background: #eaecee; color: #5d6d7e; }
.badge-active  { background: #d4efdf; color: #1e8449; }
.badge-inactive{ background: #fadbd8; color: #922b21; }
.badge-pending     { background: #fdebd0; color: #935116; }
.badge-collected   { background: #d4efdf; color: #1e8449; }
.badge-scheduled   { background: #d6eaf8; color: #1a5276; }
.badge-special     { background: #f9ebea; color: #922b21; }
 
/* ---- FLASH MESSAGES ---- */
.flash-messages {
    margin-bottom: 16px;
}
 
.flash {
    padding: 10px 16px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-size: 14px;
}
 
.flash-success { background: #d4efdf; color: #1e8449; border-left: 4px solid #1e8449; }
.flash-error   { background: #fadbd8; color: #922b21; border-left: 4px solid #922b21; }
.flash-info    { background: #d6eaf8; color: #1a5276; border-left: 4px solid #1a5276; }
 
/* ---- SEARCH BAR ---- */
.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
 
.search-bar input {
    flex: 1;
}
 
/* ---- DETAIL GRID ---- */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
    font-size: 14px;
}
 
.detail-label {
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 2px;
}
 
.detail-value {
    font-weight: 500;
    color: #2c3e50;
}
 
/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
    .detail-grid { grid-template-columns: 1fr; }
    .menu-grid   { grid-template-columns: 1fr 1fr; }
    .login-box   { width: 95%; padding: 28px 20px; }
}