@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #F97316;
    /* Orange - Brand Color */
    --primary-hover: #EA580C;
    --secondary-color: #868e96;
    --success-color: #5eba00;
    --info-color: #45aaf2;
    --warning-color: #f1c40f;
    --danger-color: #cd201f;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --body-bg: #f4f4f4;
    --card-bg: #ffffff;
    --text-color: #495057;
    --border-color: #e0e0e0;
    --sidebar-width: 260px;
    --header-height: 70px;
    --card-radius: 27.5px;
    --btn-radius: 30px;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--body-bg);
    color: var(--text-color);
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.5;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: var(--dark-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

/* Layout */
.wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow-y: auto;
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-menu {
    padding: 20px 0;
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: #6e7687;
    font-weight: 600;
    font-size: 1rem;
    border-left: 4px solid transparent;
    transition: all 0.3s;
}

.sidebar-menu a i {
    width: 24px;
    margin-right: 10px;
    font-size: 1.1rem;
    text-align: center;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    color: var(--primary-color);
    background: rgba(249, 115, 22, 0.05);
    border-left-color: var(--primary-color);
}

/* Main Content */
.main-content {
    width: calc(100% - var(--sidebar-width));
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

/* Top Header */
.top-header {
    height: var(--header-height);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    position: sticky;
    top: 0;
    z-index: 900;
}

.header-left {
    display: flex;
    align-items: center;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-color);
    background: none;
    border: none;
    cursor: pointer;
    margin-right: 15px;
}

.page-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.user-info span {
    display: block;
    font-weight: 600;
    color: var(--dark-color);
    line-height: 1.2;
}

.user-info small {
    color: var(--secondary-color);
    font-size: 0.8rem;
}

/* Content Area */
.content-wrapper {
    padding: 30px;
    flex-grow: 1;
}

/* Cards */
.card {
    background: var(--card-bg);
    border: none;
    border-radius: var(--card-radius);
    box-shadow: 0 10px 30px 0 rgba(172, 168, 168, 0.15);
    margin-bottom: 30px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.card-body {
    padding: 25px;
}

/* Stats Cards */
.stats-card {
    display: flex;
    align-items: center;
    padding: 25px;
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.stats-icon.primary {
    background: rgba(249, 115, 22, 0.1);
    color: var(--primary-color);
}

.stats-icon.success {
    background: rgba(94, 186, 0, 0.1);
    color: var(--success-color);
}

.stats-icon.info {
    background: rgba(69, 170, 242, 0.1);
    color: var(--info-color);
}

.stats-icon.danger {
    background: rgba(205, 32, 31, 0.1);
    color: var(--danger-color);
}

.stats-icon.warning {
    background: rgba(241, 196, 15, 0.1);
    color: var(--warning-color);
}

.stats-info h3 {
    font-size: 1.8rem;
    margin: 0;
    font-weight: 800;
    line-height: 1.2;
}

.stats-info p {
    margin: 0;
    color: var(--secondary-color);
    font-size: 0.95rem;
    font-weight: 600;
}

/* Forms */
.form-control,
.form-select {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 0.95rem;
    height: auto;
    background-color: #fcfcfc;
    transition: all 0.3s;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
    background-color: #fff;
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

/* Buttons */
.btn {
    padding: 10px 25px;
    border-radius: var(--btn-radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    margin-bottom: 0;
    color: var(--text-color);
}

.table th {
    border-top: none;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 700;
    color: var(--dark-color);
    padding: 15px;
    white-space: nowrap;
}

.table td {
    padding: 15px;
    vertical-align: middle;
    border-top: 1px solid #f0f0f0;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
}

.badge-success {
    background: rgba(94, 186, 0, 0.1);
    color: var(--success-color);
}

.badge-warning {
    background: rgba(241, 196, 15, 0.1);
    color: var(--warning-color);
}

.badge-danger {
    background: rgba(205, 32, 31, 0.1);
    color: var(--danger-color);
}

.badge-info {
    background: rgba(69, 170, 242, 0.1);
    color: var(--info-color);
}

/* Footer */
.footer {
    background: #ffffff;
    padding: 20px 30px;
    text-align: center;
    color: var(--secondary-color);
    font-size: 0.9rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Responsive */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        width: 100%;
        margin-left: 0;
    }

    .mobile-toggle {
        display: block;
    }

    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .overlay.active {
        display: block;
    }
}