/**
 * ==========================================
 * FILE: style.css
 * PURPOSE: Custom styling for Employee Dashboard CMS
 * ==========================================
 * This file styles the Login page for now.
 * We will keep adding to this file (dashboard, sidebar,
 * cards, tables etc.) as we build more pages later.
 */

/* ---------- Global Reset / Base ---------- */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ---------- Login Page Body ---------- */
.login-body {
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
}

/* Wrapper to center the login card vertically & horizontally */
.login-wrapper {
    min-height: 100vh;
    padding: 20px;
}

/* ---------- Login Card ---------- */
.login-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 40px 35px;
    width: 100%;
    max-width: 400px;
    animation: fadeInUp 0.5s ease-in-out;
}

/* Simple fade-in animation when the card loads */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Login Icon ---------- */
.login-icon {
    font-size: 45px;
    color: #4e73df;
    background: #eef1fd;
    padding: 18px;
    border-radius: 50%;
    width: 85px;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* ---------- Form Inputs ---------- */
.login-card .form-label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.login-card .form-control {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #dcdfe6;
}

.login-card .form-control:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

/* Password toggle eye button */
#togglePassword {
    border-radius: 0 8px 8px 0;
    border: 1px solid #dcdfe6;
    border-left: none;
    background: #f8f9fc;
}

#togglePassword:hover {
    background: #eef1fd;
}

/* ---------- Login Button ---------- */
.btn-login {
    background: #4e73df;
    border: none;
    padding: 11px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
    transition: all 0.25s ease-in-out;
}

.btn-login:hover {
    background: #224abe;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(34, 74, 190, 0.35);
}

/* ---------- Alerts ---------- */
.login-card .alert {
    font-size: 13.5px;
    border-radius: 8px;
}

/* ---------- Responsive Tweaks ---------- */
@media (max-width: 480px) {
    .login-card {
        padding: 30px 22px;
        border-radius: 12px;
    }

    .login-icon {
        width: 70px;
        height: 70px;
        font-size: 36px;
    }
}
/* ---------- Dashboard Layout ---------- */
.dashboard-body {
    background: #f4f6f9;
    margin: 0;
}

.top-navbar {
    background: #ffffff;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 15px;
}

.sidebar {
    width: 230px;
    background: #1e2a4a;
    min-height: calc(100vh - 60px);
    padding-top: 10px;
    transition: all 0.3s ease;
}

.sidebar .nav-link {
    color: #c3c9d9;
    padding: 12px 20px;
    font-size: 14.5px;
    border-left: 3px solid transparent;
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.sidebar .active-link {
    background: rgba(78, 115, 223, 0.15);
    color: #fff;
    border-left: 3px solid #4e73df;
    font-weight: 600;
}

.main-content {
    background: #f4f6f9;
}

.stat-card {
    border-radius: 10px;
    border-left: 4px solid #ccc;
}

.border-start-primary { border-left-color: #4e73df !important; }
.border-start-success { border-left-color: #1cc88a !important; }
.border-start-warning { border-left-color: #f6c23e !important; }
.border-start-info    { border-left-color: #36b9cc !important; }

/* Mobile responsive sidebar */
@media (max-width: 991px) {
    .sidebar {
        position: fixed;
        left: -230px;
        top: 60px;
        z-index: 999;
    }
    .sidebar.sidebar-open {
        left: 0;
    }
}