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

html, body {
    height: 100%;
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fc;
    color: #495057;
}

#wrapper {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

#sidebar {
    width: 260px;
    height: 100vh;
    background-color: #4e73df;
    background-image: linear-gradient(180deg, #2e4a9e 10%, #1a2c6b 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    transition: all 0.3s ease;
    z-index: 1000;
}

#sidebar .brand {
    font-size: 1.2rem;
    font-weight: 700;
    padding: 1.5rem 1rem;
    text-align: center;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

#sidebar .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 0.8rem 1rem;
    margin: 0 1rem 0.3rem;
    border-radius: 0.35rem;
    display: flex;
    align-items: center;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    font-size: 0.9rem;
}

#sidebar .nav-link i {
    width: 30px;
    font-size: 1.1rem;
    opacity: 0.85;
}

#sidebar .nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

#sidebar .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.2);
    font-weight: 600;
}

#sidebar .nav-link.active i {
    opacity: 1;
}

#sidebar .sidebar-heading {
    color: rgba(255,255,255,0.4);
    font-size: 0.70rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0 1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

#content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background-color: #f8f9fc;
}

#topbar {
    background-color: #fff;
    height: 70px;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 .15rem 1.75rem 0 rgba(58,59,69,.05);
    z-index: 10;
}

#topbar .btn-light {
    background: #fff;
    border: 1px solid #e3e6f0;
    color: #d1d3e2;
}

.main-content {
    padding: 1.5rem;
    flex: 1;
}

.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 .15rem 1.75rem 0 rgba(58,59,69,.05);
    margin-bottom: 1.5rem;
    background-color: #fff;
}

.card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: #4e73df;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 0.5rem !important;
    border-top-right-radius: 0.5rem !important;
}

.card-body {
    padding: 1.25rem;
}

.btn {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.35rem;
}

.btn-primary { background-color: #4e73df; border-color: #4e73df; color: white;}
.btn-primary:hover { background-color: #2e59d9; border-color: #2653d4; color: white;}
.btn-success { background-color: #1cc88a; border-color: #1cc88a; color: white; }
.btn-warning { background-color: #f6c23e; border-color: #f6c23e; color: #fff; }
.btn-danger { background-color: #e74a3b; border-color: #e74a3b; color: white;}
.btn-info { background-color: #36b9cc; border-color: #36b9cc; color: white; }

.page-title {
    color: #5a5c69;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 500;
    color: #495057;
}

.form-control, .form-select {
    border-radius: 0.35rem;
    border: 1px solid #d1d3e2;
    padding: 0.5rem 0.75rem;
}

.form-control:focus, .form-select:focus {
    border-color: #bac8f3;
    box-shadow: 0 0 0 0.2rem rgba(78,115,223,.25);
}

table.dataTable.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(0,0,0,.02) !important;
}
table.dataTable thead th { 
    border-bottom: 2px solid #e3e6f0 !important; 
    color: #858796; 
    font-weight: 600; 
    text-transform: uppercase; 
    font-size: 0.75rem; 
    letter-spacing: 0.5px;
}
table.dataTable tbody td { 
    border-bottom: 1px solid #e3e6f0; 
    color: #5a5c69; 
    vertical-align: middle; 
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    #sidebar {
        margin-left: -260px;
        position: absolute;
        height: 100%;
        box-shadow: 0 0 20px rgba(0,0,0,0.2);
    }
    #sidebar.show {
        margin-left: 0;
    }
}
