/* LazFort Studios - Clean Light Theme */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Nunito:wght@300;400;600;700&display=swap');

:root {
    /* Color Palette */
    --bg-body: #f3f4f6;
    /* Light Grey Background */
    --bg-card: #ffffff;
    /* White Cards */
    --sidebar-bg: #111827;
    /* Dark Sidebar for contrast */
    --accent-red: #ef4444;
    /* Brand Red */
    --text-primary: #111827;
    /* Deep Black for text */
    --text-secondary: #6b7280;
    /* Grey for subtitles */
    --border-color: #e5e7eb;
    /* Light borders */

    /* Functional Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --info: #3b82f6;
    --danger: #dc2626;

    /* Dimensions */
    --sidebar-width: 260px;

    /* Fonts */
    --font-heading: 'Nunito', sans-serif;
    /* Clean readable headings */
    --font-brand: 'Anton', sans-serif;
    /* For Logo/Brand only */
    --font-body: 'Nunito', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-primary);
    min-height: 100vh;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
}

.brand-text {
    font-family: var(--font-brand);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* LAYOUT */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

/* SIDEBAR - Dark High Contrast */
#sidebar {
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: #9ca3af;
    /* Light grey text */
    transition: all 0.3s;
    min-height: 100vh;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.05);
}

#sidebar .sidebar-header {
    padding: 20px;
    background: rgba(0, 0, 0, 0.1);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#sidebar ul.components {
    padding: 15px 0;
}

#sidebar ul p {
    color: #6b7280;
    padding: 10px 25px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

#sidebar ul li a {
    padding: 12px 25px;
    font-size: 0.95rem;
    display: block;
    color: #d1d5db;
    /* Readable light grey */
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: 0.2s;
}

#sidebar ul li a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

#sidebar ul li.active>a {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.1) 0%, transparent 100%);
    color: white;
    border-left-color: var(--accent-red);
}

#sidebar ul li a i {
    width: 25px;
    text-align: center;
    margin-right: 10px;
}

/* CONTENT AREA */
#content {
    width: 100%;
    padding: 30px;
    min-height: 100vh;
}

/* NAVBAR - White Clean */
.navbar {
    background: var(--bg-card);
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.navbar-brand {
    font-weight: 700;
    color: var(--text-primary) !important;
}

/* CARDS - White Container */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

.card-header h6 {
    font-weight: 700;
    color: var(--text-primary);
    /* Ensure explicit dark color */
    margin: 0;
}

.card-body {
    padding: 1.5rem;
    color: var(--text-primary);
}

/* STAT CARDS */
.card-counter {
    background: var(--bg-card);
    border-radius: 0.75rem;
    padding: 20px;
    margin: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: 0.2s;
    height: 140px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.card-counter:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-counter i {
    font-size: 4rem;
    position: absolute;
    right: 15px;
    top: 20px;
    opacity: 0.1;
    /* Subtle icon */
    color: var(--text-primary);
}

.card-counter .count-numbers {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 10px;
}

.card-counter .count-name {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 5px;
}

/* Color accents for stats */
.card-counter.primary {
    border-left: 4px solid var(--info);
}

.card-counter.success {
    border-left: 4px solid var(--success);
}

.card-counter.danger {
    border-left: 4px solid var(--danger);
}

.card-counter.info-color {
    border-left: 4px solid #8b5cf6;
}

/* TABLES - Clean & Readable */
.table {
    margin-bottom: 0;
    width: 100%;
}

.table thead th {
    background-color: #f9fafb;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border-color);
    padding: 12px 15px;
}

.table tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    vertical-align: middle;
}

.text-muted {
    color: var(--text-secondary) !important;
}

/* BUTTONS */
.btn {
    border-radius: 0.5rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: 0.2s;
}

.btn-primary {
    background-color: var(--text-primary);
    /* Stylish Black Button */
    border-color: var(--text-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-red);
    /* Red on hover */
    border-color: var(--accent-red);
}

.btn-success {
    background-color: var(--success);
    border: none;
}

.btn-danger {
    background-color: var(--danger);
    border: none;
}

/* FORM ELEMENTS */
.form-control,
.form-select {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.6rem 1rem;
    color: var(--text-primary);
    background-color: var(--bg-card);
}

.form-control:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* UTILS */
.bg-light {
    background-color: #f9fafb !important;
}

.text-white {
    color: white !important;
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}