/* ==========================================================================
   STYLE.CSS - DIVERCITY 2026 CUSTOM PORTAL ENGINE (Solid Dark + Bottom Nav)
   ========================================================================== */

html { background-color: #0b0f14; height: 100%; }

body {
    margin: 0; padding: 0; min-height: 100%; 
    color: #e4e6eb; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: transparent; 
}

/* Containers */
.container { 
    width: 100%; max-width: 1200px; margin: 0 auto; 
    display: flex; flex-direction: column; box-sizing: border-box;
    padding: calc(env(safe-area-inset-top) + 24px) 16px calc(110px + env(safe-area-inset-bottom)) 16px; 
}

.panel { 
    background: rgba(20, 26, 35, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid #242f41; border-radius: 14px; padding: 20px; margin-bottom: 24px; 
    height: fit-content; box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Headers */
.header { 
    border-bottom: 1px solid #242f41; padding-bottom: 20px; margin-bottom: 24px; 
    display: flex; flex-direction: column; gap: 8px; flex-shrink: 0;
}
.header h2 { color: #FFE400; margin: 0; font-size: 2rem; font-weight: 900; }
h3 { margin-top: 0; font-size: 1.25rem; border-left: 4px solid #FFE400; padding-left: 10px; color: #fff; margin-bottom: 16px; }

@media(min-width: 768px) { .header { flex-direction: row; justify-content: space-between; align-items: center; } }

/* Forms & Inputs */
label { font-weight: 600; font-size: 0.9rem; color: #8a94a6; display: block; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.5px; }
input[type="text"], input[type="email"], input[type="password"], input[type="time"], input[type="date"], input[type="number"], select, textarea { 
    background: #0b0f14; border: 1px solid #242f41; border-radius: 10px; padding: 0 14px; 
    color: #fff; font-size: 1rem; width: 100%; box-sizing: border-box; outline: none; margin-bottom: 16px; transition: 0.2s;
}
input, select { height: 50px; }
textarea { height: 100px; padding-top: 14px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: #FFE400; }

/* Buttons */
button { 
    background: linear-gradient(135deg, #FFE400 0%, #ccb700 100%); color: #0b0f14; border: none; 
    height: 52px; border-radius: 12px; font-size: 1rem; font-weight: bold; width: 100%; cursor: pointer; 
    box-shadow: 0 4px 15px rgba(255, 228, 0, 0.15); display: flex; align-items: center; justify-content: center; transition: 0.2s;
}
button:active { transform: scale(0.98); }
.logout-btn { width: auto; background: transparent; border: 1px solid #f87171; color: #f87171; height: 40px; padding: 0 16px; box-shadow: none; text-decoration: none; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-weight: bold;}
.logout-btn:hover { background: rgba(248, 113, 113, 0.1); }

/* Availability UI */
.date-block { background: #0b0f14; padding: 16px; margin-bottom: 16px; border-radius: 12px; border: 1px solid #242f41; border-left: 4px solid #FFE400; }
.date-block label { font-size: 1rem; color: #e4e6eb; text-transform: none; letter-spacing: normal; display: flex; align-items: center; gap: 10px; margin-bottom: 0;}

/* Scheduler UI */
.shift-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.shift-block { background: #141a23; padding: 16px; border-radius: 12px; border: 1px solid #242f41; cursor: pointer; border-left: 5px solid #242f41; transition: 0.2s; color: #d1d5db; }
.shift-block:hover { transform: translateY(-2px); border-color: #FFE400; }
.shift-block strong { color: #8a94a6; }
.shift-block.assigned { border-left-color: #34d399; } 
.shift-block.unassigned { border-left-color: #f87171; } 
.shift-block .staff-name { color: #FFE400; font-weight: bold; }

/* Modal */
#assignment-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(11, 15, 20, 0.85); backdrop-filter: blur(5px); z-index: 1000;}
.modal-content { background: #141a23; width: 90%; max-width: 400px; margin: 10vh auto; padding: 24px; border-radius: 14px; border: 1px solid #242f41; }
.close { float: right; cursor: pointer; font-size: 1.5rem; color: #8a94a6; transition: 0.2s; }
.close:hover { color: #f87171; }

/* Alerts */
.alert, p[style*="color: green"], p[style*="color: green;"], p[style*="color:green;"] {
    padding: 16px 20px; border-radius: 12px; margin-bottom: 24px; font-weight: 700; font-size: 0.95rem; width: 100%; box-sizing: border-box;
    background: rgba(16, 185, 129, 0.15); color: #34d399 !important; border: 1px solid rgba(16, 185, 129, 0.3);
}
p[style*="color:red"], p[style*="color: red"], p[style*="color: red;"] {
    background: rgba(239, 68, 68, 0.15); color: #f87171 !important; border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 16px 20px; border-radius: 12px; margin-bottom: 24px; font-weight: 700; display: block; box-sizing: border-box;
}

/* ==========================================================================
   📱 STABILIZED BOTTOM NAVIGATION INTERFACE
   ========================================================================== */
.bottom-nav-bar { 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    height: calc(68px + env(safe-area-inset-bottom)); 
    background: rgba(20, 26, 35, 0.96); 
    border-top: 1px solid #1f2937; 
    display: flex; 
    align-items: center; 
    justify-content: space-around; 
    padding: 0 10px env(safe-area-inset-bottom) 10px; 
    z-index: 9995; 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px); 
}

.nav-item { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    flex: 1; 
    height: 100%; 
    text-decoration: none; 
    color: #8a94a6; 
    background: transparent; 
    border: none; 
    cursor: pointer; 
    padding: 0; 
    transition: 0.2s;
}

.nav-icon { font-size: 1.5rem; margin-bottom: 4px; }
.nav-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }

.nav-item:hover, .nav-item.active { color: #FFE400; }
.nav-item.danger:hover { color: #f87171; }