/* ========================================
   COLOR VARIABLES (Change Here Only)
======================================== */
:root {
    --primary-color: #ff3c2e;
    --primary-hover: #f71000;

    --secondary-color: #4a90e2;

    --text-dark: #333;
    --text-medium: #555;

    --bg-light: #f5f5f5;
    --bg-body: #e9e9e9;
    --white: #ffffff;

    --border-light: #ddd;
    --border-lighter: #dcdcdc;

    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.5);
}

/* ========================================
   GLOBAL RESET
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========================================
   FONT
======================================== */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Regular.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

body {
    font-family: 'Poppins', sans-serif;
}

/* ========================================
   LOGIN PAGE
======================================== */
.login-container {
    background: var(--bg-body);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    background: var(--bg-light);
    width: 420px;
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px var(--shadow-light);
    text-align: center;
}

.logo,
.logoindex {
    color: var(--primary-color);
    font-size: 48px;
    font-weight: 700;
}


.login-card h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text-dark);
}

/* ========================================
   INPUTS
======================================== */
.input-group {
    text-align: left;
    margin-bottom: 20px;
}

.input-group label {
    font-size: 13px;
    color: var(--text-medium);
    display: block;
    margin-bottom: 6px;
}

.input-group input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}

.input-group input:focus {
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 90, 0, 0.15);
}

/* ========================================
   BUTTONS
======================================== */
.login-btn,
.logout-btn {
    padding: 10px;
    border: none;
    border-radius: 6px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

.login-btn {
    width: 160px;
    /* margin-top: 10px; */
}

.logout-btn {
    width: 110px;
    margin-top: 10px;
}

.login-btn:hover,
.logout-btn:hover {
    background: var(--primary-hover);
}

/* ========================================
   TABS
======================================== */
.active {
    color: var(--primary-hover);
    border-bottom: 2px solid var(--primary-hover);
}

.tab {
    /* cursor: pointer; */
    user-select: none;
}

/* ========================================
   FILTER SECTION
======================================== */
.top-filters {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter-box {
    display: flex;
    flex-direction: column;
    font-size: 13px;
}

.filter-box input,
.filter-box select {
    padding: 6px 10px;
    border: 1px solid var(--border-lighter);
    border-radius: 6px;
    background: var(--white);
}

/* ========================================
   TOGGLE SWITCH
======================================== */
.toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    font-size: 13px;
    background: var(--white);
    border-radius: 2px;
    box-shadow: 0 2px 8px var(--shadow-medium);
    padding: 5px 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 34px;
}

.slider:before {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: var(--white);
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* ========================================
   DOWNLOAD BUTTON
======================================== */
.download-btn {
    /* margin-top: 18px; */
    padding: 6px 12px;
    border: 1px solid var(--primary-color);
    background: var(--primary-color);  
    color: var(--white);
    border-radius: 6px;
    cursor: pointer;
}







/* ========================================
   CARDS
======================================== */
.card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow-medium);
    padding: 20px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 150px;
}

.stat-value {
    font-size: 22px;
    font-weight: bold;
}

/* ========================================
   SCROLLBAR HIDE
======================================== */
::-webkit-scrollbar {
    display: none;
}


label{
    font-size: 15px;
    font-weight: 500;
}


/* Modal Background */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

/* Modal Box */
.modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    width: 320px;
    text-align: center;
    animation: fadeIn 0.2s ease-in-out;
}

/* Buttons */
.modal-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.btn {
    padding: 8px 15px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.confirm {
    background: #ff4d4d;
    color: white;
}

.cancel {
    background: #ccc;
}

/* Simple animation */
@keyframes fadeIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}