@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins', sans-serif;
}

body{
    background:#f6f3ef;
    color:#2d1e16;
}

/* SIDEBAR */

.sidebar{
    width:270px;
    height:100vh;
    position:fixed;
    left:0;
    top:0;
    background:linear-gradient(180deg,#5c3317,#7b4724);
    padding:35px 20px;
    box-shadow:5px 0 25px rgba(0,0,0,0.15);
    overflow-y:auto;
}

.sidebar h1{
    color:white;
    margin-bottom:40px;
    font-size:28px;
    font-weight:700;
}

.sidebar a{
    display:flex;
    align-items:center;
    gap:10px;
    color:white;
    text-decoration:none;
    padding:14px 18px;
    margin-bottom:12px;
    border-radius:16px;
    transition:0.3s;
    font-weight:500;
}

.sidebar a:hover{
    background:rgba(255,255,255,0.12);
    transform:translateX(5px);
}

/* MAIN */

.main{
    margin-left:290px;
    padding:40px;
}

/* TOPBAR */

.topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
}

.topbar h2{
    font-size:32px;
    font-weight:700;
}

.topbar p{
    margin-top:6px;
    color:#8a6a58;
}

/* GRID */

.dashboard-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:20px;
    margin-bottom:30px;
}

/* STAT CARDS */

.stat-card{
    background:white;
    padding:25px;
    border-radius:24px;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
    border:1px solid rgba(0,0,0,0.04);
    transition:0.3s;
}

.stat-card:hover{
    transform:translateY(-5px);
}

.stat-card h3{
    font-size:16px;
    color:#8a6a58;
    margin-bottom:12px;
}

.stat-card p{
    font-size:32px;
    font-weight:700;
}

/* CARDS */

.card{
    background:white;
    border-radius:26px;
    padding:30px;
    margin-bottom:25px;
    box-shadow:0 12px 30px rgba(0,0,0,0.08);
    border:1px solid rgba(0,0,0,0.04);
}

.card h2{
    margin-bottom:20px;
    font-size:24px;
}

/* FORM */

input,
textarea,
button,
select{
    width:100%;
    padding:15px;
    margin-top:12px;
    border-radius:16px;
    border:1px solid #ddd;
    background:#fafafa;
    font-size:15px;
}

input:focus,
textarea:focus,
select:focus{
    outline:none;
    border-color:#c07a3c;
    background:white;
}

/* BUTTON */

button{
    background:linear-gradient(135deg,#c07a3c,#9f5d24);
    border:none;
    color:white;
    font-weight:600;
    cursor:pointer;
    transition:0.3s;
}

button:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 20px rgba(192,122,60,0.3);
}

/* TABLE */

table{
    width:100%;
    border-collapse:collapse;
    overflow:hidden;
}

th{
    background:#f7ede3;
    color:#5a3720;
    font-weight:600;
}

th,
td{
    padding:16px;
    border-bottom:1px solid #eee;
    text-align:left;
}

tr:hover{
    background:#faf7f4;
}

/* LOGIN */

.login-box{
    width:430px;
    background:white;
    padding:45px;
    border-radius:30px;
    box-shadow:0 15px 40px rgba(0,0,0,0.12);
    margin:90px auto;
}

.login-box h1{
    margin-bottom:25px;
    text-align:center;
    font-size:34px;
}

/* CALENDAR */

#calendar{
    background:white;
    border-radius:20px;
    padding:15px;
}

.fc-toolbar-title{
    font-weight:700 !important;
}

.fc-button{
    background:#6b3f1d !important;
    border:none !important;
}

.fc-button:hover{
    background:#8c552d !important;
}

.fc-daygrid-event{
    border:none !important;
    background:#c07a3c !important;
    padding:4px !important;
    border-radius:8px !important;
}

/* STATUS */

.status-approved{
    color:green;
    font-weight:600;
}

.status-denied{
    color:red;
    font-weight:600;
}

.status-open{
    color:orange;
    font-weight:600;
}

/* SCROLLBAR */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-thumb{
    background:#c07a3c;
    border-radius:20px;
}

/* MOBILE */

@media(max-width:900px){

    .sidebar{
        width:100%;
        height:auto;
        position:relative;
    }

    .main{
        margin-left:0;
        padding:20px;
    }

    .dashboard-grid{
        grid-template-columns:1fr;
    }

    .login-box{
        width:90%;
    }

    .topbar{
        flex-direction:column;
        align-items:flex-start;
        gap:15px;
    }

    table{
        display:block;
        overflow-x:auto;
    }
}

#calendar{
    margin-top:20px;
}

.fc{
    background:white;
    border-radius:16px;
    padding:15px;
}

.fc-toolbar-title{
    font-size:24px !important;
    font-weight:700;
}

.fc-daygrid-event{
    border:none !important;
    border-radius:8px !important;
    padding:3px 6px !important;
    cursor:pointer;
}