/* =========================================
   BizBook - Premium Theme
   ========================================= */

html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    background-color: #f4f7f6 !important;
    color: #333 !important;
    margin: 0;
    padding: 0;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }

/* =========================================
   Layout (Sidebar & Main Content)
   ========================================= */
.page {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    background-color: #f4f7f6;
}

.sidebar {
    background: linear-gradient(180deg, #1e1e2f 0%, #2a2a3e 100%) !important;
    box-shadow: 4px 0 15px rgba(0,0,0,0.1);
    z-index: 100;
}

.top-row {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e0e0e0;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

    .top-row a {
        color: #667eea;
        text-decoration: none;
        font-weight: 600;
    }

.content {
    padding-top: 1.5rem;
}

@media (min-width: 641px) {
    .page {
        flex-direction: row;
    }

    .sidebar {
        width: 260px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row {
        position: sticky;
        top: 0;
        z-index: 1;
    }
}

/* =========================================
   Forms & Inputs (Sundar Inputs)
   ========================================= */
input[type="text"],
input[type="number"],
input[type="password"],
input[type="date"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background-color: #fafafa;
}

    input:focus, select:focus, textarea:focus {
        outline: none;
        border-color: #667eea;
        background-color: #fff;
        box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    }

label {
    font-weight: 600;
    color: #444;
    margin-bottom: 5px;
    display: block;
}

/* =========================================
   Buttons (Modern Buttons)
   ========================================= */
button {
    font-family: 'Segoe UI', sans-serif;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

    button:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    button:active {
        transform: translateY(0);
    }

/* =========================================
   Tables (Clean DataGrid)
   ========================================= */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

th {
    background-color: #f8f9fa;
    color: #555;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    padding: 15px 12px;
    border-bottom: 2px solid #eaeaea;
}

td {
    padding: 15px 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
}

tr:hover {
    background-color: #f9fbff;
}

/* =========================================
   Cards (White Boxes)
   ========================================= */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #f0f0f0;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: #2a2a3e;
    font-weight: 700;
    margin-top: 0;
}
