:root {
    --primary: #b45309;
    /* amber-700 */
    --primary-hover: #92400e;
    /* amber-800 */
    --primary-active: #92400e;
    /* amber-800 */
    --primary-light: #fffbeb;
    /* amber-50 */
    --secondary: #d97706;
    /* amber-600 */
    --bg-gray: #f9fafb;
    /* gray-50 */
    --border-gray: #e5e7eb;
    /* gray-200 */
    --text-main: #111827;
    /* gray-900 */
    --text-muted: #374151;
    /* gray-700 */
    --text-light: #9ca3af;
    /* gray-400 */
    --white: #ffffff;
    --sidebar-width: 256px;
    --sidebar-collapsed-width: 80px;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-gray);
    color: var(--text-main);
    line-height: 1.5;
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--white);
    border-right: 1px solid var(--border-gray);
    height: 100vh;
    position: sticky;
    top: 0;
    transition: width 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

/* Sidebar Components */
.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-gray);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-logo img {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: contain;
}

.sidebar-logo-text h1 {
    font-size: 0.875rem;
    color: var(--primary-active);
    font-weight: 500;
    line-height: 1.25;
}

.sidebar-logo-text p {
    font-size: 0.75rem;
    color: #6b7280;
    /* gray-500 */
}

.nav-menu {
    padding: 1rem;
    flex: 1;
}

.nav-list {
    list-style: none;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.nav-link:hover {
    background-color: var(--bg-gray);
}

.nav-link.active {
    background-color: var(--primary-light);
    color: var(--primary-active);
}

/* Cards & Stats */
.card {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-6 {
    grid-template-columns: repeat(6, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 1280px) {
    .grid-cols-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    .grid-cols-6,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    display: flex;
    flex-direction: column;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.stat-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Tables */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-gray);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-gray);
    font-size: 0.875rem;
}

/* Form Styles */
.form-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-gray);
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

/* Badges */
.badge {
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-flex;
}

.badge-status {
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.badge-status.blue {
    background-color: #eff6ff;
    color: #1d4ed8;
}

.badge-status.green {
    background-color: #f0fdf4;
    color: #15803d;
}

.badge-status.red {
    background-color: #fef2f2;
    color: #b91c1c;
}

.badge-status.yellow {
    background-color: #fefce8;
    color: #a16207;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-gray);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
}

.btn-outline:hover {
    background-color: var(--bg-gray);
}

.btn-outline-pill {
    background-color: transparent;
    border: 1px solid var(--border-gray);
    color: var(--text-muted);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    cursor: pointer;
}

/* Utility */
.mb-8 {
    margin-bottom: 2rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.text-gray-900 {
    color: var(--text-main);
}

.text-gray-600 {
    color: var(--text-muted);
}

.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

.font-semibold {
    font-weight: 600;
}

.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

/* Typography Utilities */
.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.font-bold {
    font-weight: 700;
}

.font-medium {
    font-weight: 500;
}

/* Color Utilities */
.text-white {
    color: white;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-900 {
    color: #111827;
}

/* Custom Component Utilities */
.no-padding {
    padding: 0 !important;
}

.hover-shadow {
    transition: box-shadow 0.2s;
}

.hover-shadow:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.artwork-img-container {
    height: 200px;
    width: 100%;
    position: relative;
    background-color: #f3f4f6;
}

.artwork-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tab Buttons */
.btn-tab {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: none;
    background-color: #f3f4f6;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.btn-tab:hover {
    background-color: #e5e7eb;
}

.btn-tab.active {
    background-color: #ffedd5;
    color: #9a3412;
}

/* Action Buttons */
.btn-action {
    padding: 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
}

.amber-btn {
    background-color: var(--primary);
    color: var(--white);
}

.amber-btn:hover {
    background-color: var(--primary-hover);
}

.outline-btn {
    background-color: var(--white);
    border: 1px solid var(--border-gray);
    color: var(--text-muted);
}

.outline-btn:hover {
    background-color: var(--bg-gray);
}

/* Badges Extras */
.badge-status.orange {
    background-color: #ffedd5;
    color: #ea580c;
}

.text-amber-600 {
    color: #d97706;
}

.text-amber-800 {
    color: #92400e;
}

.text-green-600 {
    color: #16a34a;
}

.text-red-500 {
    color: #ef4444;
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

/* Layout Utilities */
.p-6 {
    padding: 1.5rem;
}

.pl-10 {
    padding-left: 2.5rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.rounded {
    border-radius: 0.25rem;
}

.block {
    display: block;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.top-3 {
    top: 0.75rem;
}

.right-3 {
    right: 0.75rem;
}

.overflow-hidden {
    overflow: hidden;
}

/* Input Icon adjustment */
.relative i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 1.25rem;
    height: 1.25rem;
}