* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* ===== LOGIN PAGE ===== */
.login-page{
    font-family: Arial, Helvetica, sans-serif;
    background:#fff8e7 url("../images/wave-pattern.png") center center;
    background-size:cover;

    margin:0;
    min-height:100vh;

    display:flex;
    justify-content:center;
    align-items:center;
    flex-direction:column;

    position:relative;
}
.login-container{
    width:380px;
    background:#fff;
    border:2px solid #8a2d2d;
    border-radius:10px;
    padding:75px 30px 35px;
    text-align:center;
    position:relative;
    box-shadow: 0 8px 25px rgba(0,0,0,.20);

    margin-bottom:50px;
}

.login-container h1{
    font-size:30px;
    color:#b22222;
    font-weight:bold;
    margin-bottom:5px;
}

.login-container h2{
    font-size:20px;
    font-weight:bold;
    margin-bottom:25px;
}
.input-group{
    text-align:left;
    margin-bottom:15px;
}

.input-group label{
    display:block;
    font-size:13px;
    font-weight:bold;
    color:#222;
    margin-bottom:5px;
}

.input-group input{
    width:100%;
    height:40px;
    padding:10px;
    border:1px solid #bdbdbd;
    border-radius:px;
    font-size:14px;
    outline:none;
    transition:.2s;
}

.input-group input:focus{
    border-color:#b22222;
    box-shadow:0 0 5px rgba(178,34,34,.3);
}

button {
    width: 100%;
    padding: 12px;
    border: none;
    background: #d00000;
    color: white;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}
.login-btn{
    width:100%;
    height:45px;
    border:none;
    display:flex;
    align-items:center;
    cursor:pointer;
    overflow:hidden;
    border-radius:3px;
    padding:0;
    background:#b5162c;
}

.btn-left{
    width:40px;
    height:100%;
    background:#c41f35;
}

.btn-text{
    flex:1;
    background:#2c2c2c;
    color:#fff;
    font-weight:bold;
    letter-spacing:1px;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:14px;
}

.btn-right{
    width:45px;
    height:100%;
    background:#c41f35;
    color:white;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:18px;
}

.login-btn:hover .btn-left,
.login-btn:hover .btn-right{
    background:#9f1124;
}

.login-btn:hover .btn-text{
    background:#1e1e1e;
}

button:hover {
    background: #a00000;
}   
.logo{
    width:95px;
    height:95px;
    position:absolute;
    top:-48px;
    left:50%;
    transform:translateX(-50%);
    border-radius:50%;
    background:#fff;
    border:2px solid #b22222;
    padding:4px;
    object-fit:cover;
}

/* ===== DASHBOARD ===== */
body:not(.login-page){
    font-family:'Comic Sans MS','Arial Black',sans-serif;
    background:
    repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(255,255,255,.08) 20px,
        rgba(255,255,255,.08) 40px
    ),
    repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 20px,
        rgba(255,255,255,.08) 20px,
        rgba(255,255,255,.08) 40px
    ),
    url("../images/background.png") center/cover no-repeat fixed;
}

/* Remove/hide the old black top bar */
.topbar {
    display: none;
}

.layout {
    display: flex;
    min-height: calc(100vh - 34px);
}

/* Sidebar now red */
.sidebar {
    background-color: #b22222; /* adjust shade as you like */
    color: #ffffff;
}

.sidebar .brand-text strong {
    color: #ffffff;
}

.sidebar .brand-text span {
    color: #f0d0d0;
}

.sidebar .nav-item {
    color: #ffffff;
}

.sidebar .nav-item.active,
.sidebar .nav-item:hover {
    background-color: #ffffff;
    color: #b22222;
}

.sidebar .profile-text strong,
.sidebar .profile-text span {
    color: #ffffff;
}

/* New heading area inside the white content, replacing the old topbar */
.dashboard-heading {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #222;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.brand-text strong {
    color: #a3221e;
    display: block;
    font-size: 16px;
}

.brand-text span {
    font-size: 9px;
    color: #555;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    padding-top: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    border-left: 4px solid transparent;
}

.nav-item:hover {
    background: #e8e8e8;
}

.nav-item.active {
    background: #fff;
    color: #a3221e;
    border-left: 4px solid #a3221e;
    font-weight: 600;
}

.nav-icon {
    width: 18px;
    display: inline-block;
    text-align: center;
}

.sidebar-footer {
    border-top: 1px solid #ddd;
    padding: 14px 16px;
}

.profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #333;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-text {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    flex: 1;
}

.profile-text span {
    font-size: 11px;
    color: #777;
}

.profile-menu {
    color: #333;
    text-decoration: none;
    font-size: 18px;
}

.main-content {
    flex: 1;
    padding: 20px 30px;
    padding-bottom: 50px;
}

.header-bar {
    background: linear-gradient(to right, #b30000, #e60000);
    height: 60px;
    padding: 10px 20px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.search-box input {
    width: 250px;
    height: 38px;
    border: none;
    border-radius: 20px;
    padding: 0 15px;
    outline: none;
}

.search-box input:focus{
    border-color:#ff3333;
    box-shadow:0 0 10px rgba(255,0,0,.3);
}
.header-icons {
    display: flex;
    gap: 14px;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 18px;
}
.welcome-block {
    margin-top: 30px;
}

.welcome-block h2 {
    font-size: 22px;
    margin-bottom: 2px;
}

.welcome-block p {
    color: #777;
    font-size: 13px;
    margin-bottom: 20px;
}

.stat-cards {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: #fff;
    flex: 1;
    padding: 18px;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    text-align: center;
}

.stat-number {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-number.green { color: #2e8b57; }
.stat-number.red { color: #c0392b; }
.stat-number.orange { color: #e67e22; }
.stat-number.blue { color: #2980b9; }

.stat-label {
    font-size: 12px;
    color: #666;
}

.content-row {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.panel{
    background:rgba(255,255,255,.95);
    border:2px solid #8B4513;
    border-radius:18px;
    padding:20px;
    box-shadow:0 10px 25px rgba(0,0,0,.2);
}

.trends-panel {
    flex: 2;
}

.calendar-panel {
    flex: 1;
}

.panel h3 {
    font-size: 15px;
    margin-bottom: 14px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
}

.calendar-table {
    width: 100%;
    text-align: center;
    font-size: 12px;
    border-collapse: collapse;
}

.calendar-table th {
    color: #999;
    font-weight: 500;
    padding-bottom: 8px;
}

.calendar-table td {
    padding: 6px 0;
}

.calendar-table .today {
    background: #c0392b;
    color: #fff;
    border-radius: 50%;
}

.calendar-table .muted {
    color: #ccc;
}

.shortcuts-panel {
    display: flex;
    flex-direction: column;
}

.shortcut-item {
    display: flex;
    justify-content: space-between;
    padding: 14px 4px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.shortcut-item:last-child {
    border-bottom: none;
}

.shortcut-item span {
    color: #999;
}

.panel{
    background:#fff;
    border-radius:12px;
    padding:20px;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
}

.panel-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.employee-table{
    background:white;
    border-radius:15px;
    overflow:hidden;
}

.employee-table th{
    background:#8B0000;
    color:white;
}

.employee-table tr:hover{
    background:#fff4f4;
}

.btn-add{
    background:#ff3333;
    border:2px solid #8B4513;
    border-radius:12px;
    color:white;
    font-weight:bold;
    transition:.3s;
}

.btn-add:hover{
    background:#d62828;
    transform:translateY(-2px);
}

.btn-edit{
    background:#3498db;
    color:#fff;
    border:none;
    padding:8px 16px;
    border-radius:5px;
    cursor:pointer;
    margin-right:5px;
}

.btn-delete{
    background:#ff3333;
    border:2px solid #8B4513;
    border-radius:12px;
    color:white;
    font-weight:bold;
    transition:.3s;
}

.btn-add:hover{
    background:#d62828;
    transform:translateY(-2px);
}

.status.active{
    background:#d4edda;
    color:#155724;
}
.status{
    padding:6px 12px;
    border-radius:20px;
    font-size:13px;
    font-weight:bold;
}
.page-content{
    min-height: calc(100vh - 42px); /* subtract footer height */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== LOGIN FOOTER ===== */

.login-footer{
    position:absolute;
    left:0;
    bottom:0;
    width:100%;
    height:42px;

    background:#7b1831;

    display:flex;
    justify-content:center;
    align-items:center;

    color:#fff;
    font-size:12px;
    font-weight:bold;
}
/* ===== LOGIN ANIMATION ===== */

.login-container {
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== LOGIN BUTTON EFFECT ===== */

.login-btn {
    transition: transform 0.2s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
}
/* ============================================================
   EMPLOYEE MODAL STYLES
   Add this to the bottom of your css/style.css file
   ============================================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-box {
    background: #fff;
    padding: 24px 28px;
    border-radius: 10px;
    width: 100%;
    max-width: 420px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.modal-box h3 {
    margin-top: 0;
    margin-bottom: 16px;
}

.modal-box label {
    display: block;
    margin-top: 12px;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 14px;
}

.modal-box input,
.modal-box select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.modal-actions button {
    padding: 8px 18px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.modal-actions button[type="submit"] {
    background: #d9272e;
    color: #fff;
}

.modal-actions button[type="button"] {
    background: #eee;
    color: #333;
}

.alert {
    padding: 10px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-success {
    background: #e6f7e9;
    color: #1b7a2e;
    border: 1px solid #b6e6c1;
}

.alert-error {
    background: #fdecea;
    color: #a4262c;
    border: 1px solid #f5c2c0;
}
.panel form label {
    display: block;
    font-weight: bold;
    margin-top: 16px;
    margin-bottom: 6px;
}

.panel form input[type="text"],
.panel form input[type="number"],
.panel form input[type="date"],
.panel form select,
.panel form textarea {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.panel form textarea {
    resize: vertical;
}
.login-error{margin:0 0 16px;padding:10px;border-radius:6px;background:#fee2e2;color:#991b1b;font-size:13px;text-align:left;}

/* Modern login experience */
.login-page{margin:0;min-height:100vh;background:#f6f1f1;color:#21191b;font-family:"Fredoka",Arial,sans-serif;display:block}
.login-shell{width:min(1180px,calc(100% - 48px));min-height:680px;margin:clamp(24px,5vh,56px) auto 72px;display:grid;grid-template-columns:1.05fr .95fr;overflow:hidden;border:1px solid #eadfe1;border-radius:28px;background:#fff;box-shadow:0 28px 80px rgba(75,25,33,.14)}
.login-welcome{position:relative;display:flex;flex-direction:column;padding:48px;overflow:hidden;background:linear-gradient(145deg,#650c16 0%,#a91e2c 58%,#d34850 100%);color:#fff}
.login-welcome::before{content:"";position:absolute;width:420px;height:420px;right:-180px;bottom:-190px;border:70px solid rgba(255,255,255,.08);border-radius:50%}
.login-welcome::after{content:"";position:absolute;width:180px;height:180px;right:60px;top:120px;border-radius:50%;background:rgba(245,158,103,.18)}
.welcome-brand{position:relative;z-index:1;display:flex;align-items:center;gap:13px}.welcome-brand img{width:58px;height:58px;border:3px solid rgba(255,255,255,.55);border-radius:18px;background:#fff;object-fit:cover}
.welcome-brand strong,.welcome-brand span{display:block}.welcome-brand strong{font:800 26px Montserrat,sans-serif}.welcome-brand span{margin-top:2px;font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}
.welcome-copy{position:relative;z-index:1;margin:auto 0;max-width:520px}.welcome-kicker,.login-kicker{display:block;margin-bottom:13px;font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
.welcome-kicker{color:#ffd3bd}.welcome-copy h1{margin:0 0 18px;color:#fff;font:800 clamp(2.35rem,4vw,4rem)/1.05 Montserrat,sans-serif;letter-spacing:-.045em}.welcome-copy p{max-width:480px;color:rgba(255,255,255,.82);font-size:17px;line-height:1.65}
.welcome-features{position:relative;z-index:1;display:flex;flex-wrap:wrap;gap:9px}.welcome-features span{padding:8px 11px;border:1px solid rgba(255,255,255,.24);border-radius:999px;background:rgba(255,255,255,.09);font-size:12px}
.login-panel{display:grid;place-items:center;padding:clamp(32px,6vw,76px)}.login-container{position:static;width:100%;max-width:420px;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;text-align:left;animation:fadeIn .45s ease}
.mobile-brand{display:none}.login-kicker{color:#b52a38}.login-container h2{margin:0 0 8px;color:#21191b;font:800 clamp(1.7rem,3vw,2.25rem)/1.15 Montserrat,sans-serif;letter-spacing:-.035em}.login-subtitle{margin:0 0 30px;color:#76696d;line-height:1.55}
.login-page .input-group{text-align:left;margin-bottom:19px}.login-page .input-group label{display:block;margin-bottom:8px;color:#41373a;font-size:13px;font-weight:700}.login-input-wrap{position:relative;display:flex;align-items:center}.field-icon{position:absolute;left:14px;z-index:1;color:#a28f94;font-size:13px;font-weight:700}
.login-page .input-group input{width:100%;height:50px;padding:0 62px 0 40px;border:1px solid #ded4d6;border-radius:12px;background:#fff;color:#21191b;font:500 14px Fredoka,Arial,sans-serif;outline:none;transition:border-color .2s,box-shadow .2s,background .2s}
.login-page .input-group input::placeholder{color:#aa9da0}.login-page .input-group input:hover{background:#fffbfb}.login-page .input-group input:focus{border-color:#b52a38;box-shadow:0 0 0 4px rgba(181,42,56,.11);background:#fff}
.password-toggle{position:absolute;right:8px;width:auto;padding:8px;border:0;background:transparent;color:#9a2330;font-size:12px;font-weight:700;cursor:pointer}.password-toggle:hover{background:#fff0f2}
.login-page .login-btn{width:100%;height:52px;margin-top:6px;padding:0 20px;border:0;border-radius:12px;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(135deg,#bd2938,#790f1a);color:#fff;font:700 15px Fredoka,Arial,sans-serif;box-shadow:0 10px 22px rgba(137,18,31,.23);cursor:pointer;transition:transform .2s,box-shadow .2s}
.login-page .login-btn:hover{background:linear-gradient(135deg,#cc3342,#8c1521);transform:translateY(-2px);box-shadow:0 14px 26px rgba(137,18,31,.28)}.login-help{margin:22px 0 0;color:#96888c;font-size:12px;text-align:center}
.login-page .login-footer{position:fixed;left:0;bottom:0;width:100%;height:44px;display:flex;align-items:center;justify-content:center;background:#21191b;color:#d8cbce;font-size:11px;letter-spacing:.03em}.login-footer .footer-pattern{display:none}
.login-page .login-error{margin:0 0 20px;padding:12px 14px;border:1px solid #f2c5cb;border-radius:10px;background:#fff1f3;color:#941d2a;font-size:13px;text-align:left}
@media(max-width:850px){.login-shell{grid-template-columns:1fr;min-height:auto}.login-welcome{display:none}.login-panel{min-height:calc(100vh - 110px);padding:48px 28px}.mobile-brand{display:flex;align-items:center;gap:10px;margin-bottom:38px;color:#8c1521;font:800 21px Montserrat,sans-serif}.mobile-brand img{width:46px;height:46px;border-radius:14px}.login-container{max-width:440px}}
@media(max-width:480px){.login-shell{width:100%;margin:0 0 44px;border:0;border-radius:0;box-shadow:none}.login-panel{padding:35px 22px}.login-container h2{font-size:1.65rem}}

/* Classic centered login layout restored */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: #fff8e7 url("../images/wave-pattern.png") center/cover fixed;
}

.login-page .page-content {
    width: 100%;
    min-height: calc(100vh - 44px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 20px 55px;
}

.login-page .login-container {
    position: relative;
    width: min(410px, 100%);
    max-width: 410px;
    margin: 0;
    padding: 68px 34px 34px;
    border: 1px solid rgba(139, 0, 0, .28);
    border-radius: 18px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 22px 55px rgba(89, 28, 30, .2);
    text-align: center;
}

.login-page .logo {
    position: absolute;
    top: -52px;
    left: 50%;
    width: 104px;
    height: 104px;
    padding: 5px;
    transform: translateX(-50%);
    border: 3px solid #a91e2c;
    border-radius: 50%;
    background: #fff;
    object-fit: cover;
    box-shadow: 0 9px 22px rgba(111, 13, 22, .18);
}

.login-page .login-container h1 {
    margin: 0;
    color: #a91e2c;
    font: 800 29px "Montserrat", "Fredoka", sans-serif;
    letter-spacing: -.035em;
}

.store-subtitle {
    margin: 5px 0 25px;
    color: #796a6d;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.login-page .login-container h2 {
    margin: 0 0 5px;
    color: #21191b;
    font: 700 20px "Montserrat", "Fredoka", sans-serif;
}

.login-page .login-subtitle {
    margin: 0 0 24px;
    color: #87787c;
    font-size: 13px;
}

.login-page .input-group {
    margin-bottom: 16px;
}

.login-page .input-group label {
    margin-bottom: 7px;
}

.login-page .input-group > input,
.login-page .classic-password-wrap input {
    width: 100%;
    height: 46px;
    padding: 0 13px;
    border: 1px solid #d8ccce;
    border-radius: 9px;
    background: #fff;
}

.classic-password-wrap {
    position: relative;
}

.login-page .classic-password-wrap input {
    padding-right: 58px;
}

.login-page .password-toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    width: auto;
    height: auto;
    padding: 7px 8px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #991f2c;
    font-size: 11px;
}

.login-page .login-btn {
    height: 47px;
    margin-top: 4px;
    padding: 0;
    overflow: hidden;
    border-radius: 9px;
    display: flex;
    box-shadow: 0 9px 19px rgba(137, 18, 31, .2);
}

.login-page .login-btn .btn-left,
.login-page .login-btn .btn-right {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #b72232;
}

.login-page .login-btn .btn-left {
    width: 16px;
}

.login-page .login-btn .btn-right {
    width: 46px;
}

.login-page .login-btn .btn-text {
    height: 100%;
    background: #2a2224;
}

@media (max-width: 480px) {
    .login-page .page-content {
        padding-inline: 16px;
    }

    .login-page .login-container {
        padding-inline: 24px;
    }
}
