/* ========================= */
/* Base & Typography */
/* ========================= */
body {
    background-color: #f4f5f7;
    font-family: 'Inter', 'Roboto', sans-serif;
    color: #2c2c2c;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #1f1f1f;
    margin-bottom: 12px;
}

p, span, a {
    color: #4a4a4a;
    line-height: 1.5;
}

a {
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0d6efd;
}

/* ========================= */
/* Container & Layout */
/* ========================= */
.container, .main-content {
    padding: 30px 40px;
    margin-left: 260px; /* sidebar width */
    transition: margin-left 0.3s ease;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.col-md-4 {
    flex: 1;
    min-width: 250px;
}

/* ========================= */
/* Cards */
/* ========================= */
.card {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #e3e6ea;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.card-header {
    background-color: #f7f8fa;
    font-weight: 500;
    color: #2c2c2c;
    padding: 16px 20px;
    font-size: 1rem;
    border-bottom: 1px solid #e3e6ea;
}

.card-body {
    padding: 20px;
}

.card-body h5 {
    font-size: 1.25rem;
    font-weight: 600;
}

/* ========================= */
/* Sidebar */
/* ========================= */
.sidebar {
    background-color: #2f2f2f;
    color: #fff;
    height: 100vh;
    width: 260px;
    position: fixed;
    top: 0;
    left: 0;
    padding-top: 40px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.08);
    transition: width 0.3s ease;
}

.sidebar .avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.sidebar .avatar img {
    border-radius: 50%;
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
    border: 2px solid #555;
}

.sidebar .avatar span {
    font-size: 1rem;
    font-weight: 600;
    color: #e0e0e0;
}

.sidebar a {
    color: #cfcfcf;
    padding: 12px 25px;
    display: block;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sidebar a:hover {
    background-color: #414141;
    color: #ffffff;
}

.sidebar .collapse {
    background-color: #383838;
    border-radius: 8px;
    margin: 5px 0 5px 15px;
}

.sidebar .collapse a {
    padding: 10px 20px;
    font-size: 0.9rem;
    color: #bfbfbf;
}

.sidebar .collapse a:hover {
    background-color: #0d6efd;
    color: #fff;
}

/* ========================= */
/* Forms */
/* ========================= */
input, select, textarea {
    width: 100%;
    padding: 10px 14px;
    margin: 8px 0;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    background-color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13,110,253,0.15);
    outline: none;
}

label {
    font-weight: 500;
    margin-bottom: 4px;
    display: block;
}

/* Buttons */
button, .btn {
    background-color: #0d6efd;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover, .btn:hover {
    background-color: #0b5ed7;
}

/* ========================= */
/* Tables */
/* ========================= */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e3e6ea;
}

table th {
    background-color: #f7f8fa;
    font-weight: 600;
    color: #1f1f1f;
}

table tr:hover {
    background-color: #f1f3f5;
}

/* ========================= */
/* Lists & Items */
/* ========================= */
.list-group-item {
    border: 1px solid #e3e6ea;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 10px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: #f1f3f5;
    transform: translateY(-1px);
}

/* ========================= */
/* Charts */
/* ========================= */
.chart-container {
    height: 400px;
    width: 100%;
}

/* ========================= */
/* Scrollbar (modern admin feel) */
/* ========================= */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}