/* Blue theme globals */
:root{
    --primary: #0d6efd;
    --muted: #6c757d;
    --surface: #ffffff;
    --bg: #e3f2fd; /* Light blue background */
}

body {
    background-color: var(--bg);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    color: #212529;
}

.container { max-width: 1100px; }

/* Cards and panels */
.card, .login-container, .dashboard, table, form {
    background-color: var(--surface);
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(33,37,41,0.06);
}

.login-container { max-width: 420px; margin: 4.5rem auto; padding: 2.25rem; }

h1,h2,h3{ color:#0f1720; }

/* Tables */
table { width:100%; border-collapse: collapse; }
table th, table td { padding: 0.9rem; border-bottom: 1px solid #e9ecef; text-align:center; }
table thead th{ background:#f1f3f5; font-weight:600; }

/* Forms */
label { font-weight:600; }
input[type="text"], input[type="password"], select, textarea { border-radius:6px; }

.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: #0b5ed7; }

.alert { border-radius:6px; }

/* Utilities */
.text-muted { color: var(--muted) !important; }
.page-title { margin-bottom:1.25rem; }

/* Specific helpers to replace inline styles */
.school-logo { max-width: 90px; }
.recent-photo { width: 44px; height: 44px; object-fit: cover; }
.badge-index { background: #0056b3; color: #fff; padding: 6px 10px; border-radius: 4px; }
.centered-block { text-align: center; margin-top: 20px; }
.mt-40 { margin: 40px 0; }

/* Keep default Bootstrap button behavior; avoid global button overrides */

/* Analytics / Dashboard specific styles */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}
.stat-card {
    padding: 1.25rem;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(249,250,251,0.9));
    box-shadow: 0 6px 18px rgba(16,24,40,0.06);
    display: flex;
    align-items: center;
    gap: 0.9rem;
}
.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
}
.stat-primary { background: linear-gradient(135deg, var(--primary), #4a6cf7); }
.stat-success { background: linear-gradient(135deg, #28a745, #57d37a); }
.stat-amber { background: linear-gradient(135deg, #ffc107, #ffca66); }
.kpi-number { font-size: 1.5rem; font-weight: 700; color: #0f1720; }
.kpi-label { font-size: 0.9rem; color: var(--muted); }

.chart-card { padding: 1rem; border-radius: 10px; background: var(--surface); box-shadow: 0 6px 18px rgba(16,24,40,0.04); }


/* Modal styles for personnel photos */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: rgba(0,0,0,0.85);
    animation: fadeIn 0.3s;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.modal-content {
    display: block;
    margin: 5% auto;
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 0 24px #000;
    background: #fff;
    object-fit: contain;
}
.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1051;
    text-shadow: 0 2px 8px #000;
}
.close:hover {
    color: #bbb;
}
.employee-photo {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #e0e0e0;
    transition: border-color 0.2s;
}
.employee-photo:hover {
    border-color: var(--primary);
}

/* public/css/styles.css */
.welcome-container {
    text-align: center;
    margin-top: 50px;
}

.welcome-container h1 {
    font-size: 2em;
    margin-bottom: 20px;
}

.welcome-container nav ul {
    list-style: none;
    padding: 0;
}

.welcome-container nav ul li {
    display: inline;
    margin: 0 10px;
}

.welcome-container nav ul li a {
    text-decoration: none;
    color: #4CAF50;
    font-size: 1.2em;
    border: 2px solid #4CAF50;
    padding: 10px 20px;
    border-radius: 5px;
}

.welcome-container nav ul li a:hover {
    background-color: #4CAF50;
    color: white;
}
