/* ---------------------------------------
   GLOBAL STYLES
---------------------------------------- */
body {
    background: #f5f6fa;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    color: #333;
}

h1, h2, h3, h4 {
    font-weight: 600;
    color: #333;
}

a {
    text-decoration: none;
}

.container-fluid {
    padding: 0;
}

/* ---------------------------------------
   SIDEBAR
---------------------------------------- */
.sidebar {
    height: 100vh;
    background: #1F2327;
    padding: 25px 0;
    /*position: fixed;*/
    left: 0;
    top: 0;
    width: 240px;
    overflow-y: auto;
}

.sidebar h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 30px;
}

.sidebar a {
    color: #d4d4d4;
    padding: 12px 20px;
    font-size: 15px;
    display: block;
    transition: 0.2s;
}

.sidebar a i {
    width: 22px;
}

.sidebar a:hover {
    background: #343a40;
    color: #fff;
}

.sidebar hr {
    border-color: #555;
    margin: 15px 0;
}

/* ---------------------------------------
   LAYOUT FIX
---------------------------------------- */
.col-md-10 {
    margin-left: 240px;  /* Prevent overlap with sidebar */
}

/* ---------------------------------------
   TOPBAR
---------------------------------------- */
.topbar {
    background: #fff;
    padding: 15px 25px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.topbar strong {
    font-size: 18px;
    color: #444;
}

.topbar i {
    margin-right: 6px;
}

/* ---------------------------------------
   TABLE DESIGN
---------------------------------------- */
.table {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.table th {
    background: #f0f0f0;
    font-weight: 600;
}

.table td,
.table th {
    padding: 12px;
    vertical-align: middle;
}

.table-striped tbody tr:nth-child(odd) {
    background: #f9f9f9;
}

/* ---------------------------------------
   BUTTONS
---------------------------------------- */
.btn {
    border-radius: 4px;
    padding: 8px 16px;
}

.btn-primary {
    background: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background: #0056d2;
}

.btn-danger:hover {
    background: #c82333;
}

/* ---------------------------------------
   CARD / BOX
---------------------------------------- */
.box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* ---------------------------------------
   FORMS
---------------------------------------- */
.form-control {
    border-radius: 4px;
    box-shadow: none !important;
    border: 1px solid #ccc;
    padding: 10px;
}

.form-control:focus {
    border-color: #007bff;
}

/* ---------------------------------------
   ALERTS
---------------------------------------- */
.alert {
    border-radius: 5px;
    padding: 12px 18px;
}

.alert-success {
    background: #daf5da;
    border-color: #a5d6a7;
}

.alert-danger {
    background: #ffd6d6;
    border-color: #e57373;
}

/* ---------------------------------------
   PAGINATION
---------------------------------------- */
.pagination .page-link {
    color: #007bff;
}

.pagination .page-item.active .page-link {
    background: #007bff;
    border-color: #007bff;
}

/* ---------------------------------------
   LOGIN PAGE (optional)
---------------------------------------- */
.login-box {
    width: 380px;
    margin: 7% auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 7px rgba(0,0,0,0.15);
}

.login-box h3 {
    margin-bottom: 25px;
}
