﻿/* ===============================
   BASIC RESET & GLOBAL STYLES
================================*/
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f6f9;
    margin: 0;
    padding: 0;
    color: #333;
}

/* Container spacing */
.page-container {
    padding: 25px;
}

/* Page headings */
h1, h2, h3, h4 {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
}

/* Cards */
.card {
    border: none;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.card-header {
    background: #fafafa;
    border-bottom: 1px solid #eee;
    padding: 12px 18px;
    font-weight: 600;
}

.card-body {
    padding: 18px;
}

.card-footer {
    background: #fafafa;
    border-top: 1px solid #eee;
    padding: 12px 18px;
}

/* ===============================
   TABLE STYLING
================================*/
table.table {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

    table.table thead {
        background: #e9ecef;
        font-weight: 600;
    }

        table.table thead th {
            border-bottom: none !important;
            padding: 12px;
        }

    table.table td {
        padding: 5px 10px;
        vertical-align: middle;
        border-color: #f1f1f1;
        font-size: 14px;
    }

/* Hover effect */
.table-hover tbody tr:hover {
    background: #f8f9fa;
}

/* Status color helpers */
.table-success {
    background-color: #d4edda !important;
}

.table-warning {
    background-color: #fff3cd !important;
}

.table-danger {
    background-color: #f8d7da !important;
}

.table-info {
    background-color: #d1ecf1 !important;
}

/* ===============================
   BUTTON STYLING
================================*/
.btn {
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 500;
}

.btn-primary {
    background: #007bff;
    border-color: #007bff;
}

    .btn-primary:hover {
        background: #0069d9;
    }

.btn-secondary {
    background: #6c757d;
}

.btn-danger {
    background: #dc3545;
}

.btn-success {
    background: #28a745;
}

.btn-warning {
    background: #ffc107;
}

/* Soft shadow on buttons */
.btn-shadow {
    box-shadow: 0 3px 6px rgba(0,0,0,0.12);
}

/* ===============================
   FORMS & INPUTS
================================*/
.form-control, .form-select {
    border-radius: 4px;
    border: 1px solid #ccc;
    padding: 8px 10px;
    font-size: 14px;
}

    .form-control:focus, .form-select:focus {
        border-color: #007bff;
        box-shadow: 0 0 2px rgba(0,123,255,0.5);
    }

/* Form label */
.form-label {
    font-weight: 500;
    color: #444;
}

/* ===============================
   BADGES
================================*/
.badge {
    font-size: 12px;
    padding: 5px 8px;
    border-radius: 4px;
}

.badge-success {
    background: #28a745;
}

.badge-danger {
    background: #dc3545;
}

.badge-warning {
    background: #ffc107;
    color: #333;
}

.badge-primary {
    background: #007bff;
}

/* ===============================
   ALERTS
================================*/
.alert {
    border-radius: 4px;
    padding: 12px 15px;
    font-size: 14px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

/* ===============================
   ATTENDANCE SHEET SPECIAL STYLES
================================*/
.attendance-summary .card {
    text-align: center;
    transition: transform 0.15s ease;
}

    .attendance-summary .card:hover {
        transform: translateY(-3px);
    }

.attendance-summary .display-6 {
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
}

/* Table row subtle animations */
table.table tbody tr {
    transition: background 0.15s ease;
}

/* ===============================
   NAV LINKS (if needed)
================================*/
.nav-link {
    font-weight: 500;
    padding: 8px 12px;
}

    .nav-link.active {
        background: #007bff;
        color: #fff !important;
        border-radius: 3px;
    }

/* ===============================
   MISC HELPERS
================================*/
.text-muted {
    color: #6c757d !important;
}

.text-small {
    font-size: 12px;
}

.rounded {
    border-radius: 6px !important;
}


/* ===================================
   DARK PREMIUM EMS NAVBAR
=====================================*/
.ems-navbar-dark {
    background: linear-gradient(90deg, #0f172a, #1e293b, #334155);
    padding: 10px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

    .ems-navbar-dark .nav-link {
        color: #cbd5e1 !important;
        font-weight: 500;
        margin-right: 10px;
        letter-spacing: .3px;
        transition: all .15s ease;
    }

        .ems-navbar-dark .nav-link:hover {
            color: #fff !important;
            background: rgba(255,255,255,0.08);
            padding-left: 12px;
            padding-right: 12px;
            border-radius: 6px;
        }

    .ems-navbar-dark .navbar-brand {
        color: #fff !important;
        font-size: 1.35rem;
        letter-spacing: 1px;
    }

/* Avatar */
.nav-avatar {
    width: 32px;
    height: 32px;
    background: #3b82f6;
    border-radius: 50%;
    color: #fff;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Username */
.nav-username {
    color: #f1f5f9;
    font-weight: 500;
}

/* Profile container */
.nav-profile {
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255,255,255,0.07);
    transition: background .2s;
}

    .nav-profile:hover {
        background: rgba(255,255,255,0.15);
    }

/* Toggler for dark mode */
.navbar-toggler {
    border-color: rgba(255,255,255,0.4) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 30 30'%3E%3Cpath stroke='%23ffffff' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
