* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066cc;
    --secondary-color: #e63946;
    --sidebar-bg: #f8f9fa;
    --sidebar-hover: #e9ecef;
    --sidebar-text: #495057;
    --sidebar-active: #0066cc;
    --content-bg: #f8fafc;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --card-hover-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--content-bg);
    overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 260px;
    background: var(--sidebar-bg);
    padding: 0;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all 0.3s ease;
    border-right: 1px solid #dee2e6;
}

.logo-container {
    padding: 1.5rem;
    background: white;
    border-bottom: 1px solid #dee2e6;
    text-align: center;
}

.logo-container img {
    max-width: 180px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.nav-menu {
    padding: 1.5rem 0;
}

.nav-item {
    margin: 0.25rem 0.75rem;
}

.nav-link {
    color: var(--sidebar-text);
    padding: 0.875rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    text-decoration: none;
}

.nav-link i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.nav-link:hover {
    background-color: var(--sidebar-hover);
    color: var(--sidebar-active);
    transform: translateX(4px);
}

.nav-link.active {
    background: var(--sidebar-active);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.25);
}

/* Main Content */
.main-content {
    margin-left: 260px;
    min-height: 100vh;
    padding: 2rem;
    transition: all 0.3s ease;
}

/* Header */
.page-header {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.greeting {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.greeting-icon {
    font-size: 2rem;
}

.date-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--content-bg);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.date-selector input {
    border: none;
    background: transparent;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
}

.date-selector button {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.date-selector button:hover {
    background: rgba(0, 102, 204, 0.1);
}

/* Stats Cards */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.75rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.stat-card:hover {
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-4px);
}

.stat-card.open {
    border-left-color: #fbbf24;
}

.stat-card.separated {
    border-left-color: #60a5fa;
}

.stat-card.sent {
    border-left-color: #34d399;
}

.stat-card h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
}

/* Orders List */
.orders-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.orders-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.orders-section h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 2px;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #94a3b8;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Print Models Section */
.print-models-section {
    margin-top: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2rem;
    text-align: center;
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.model-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.model-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-4px);
}

.model-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.model-icon.excel {
    color: #10b981;
}

.model-icon.tag {
    color: #fbbf24;
}

.model-icon.pdf {
    color: #ef4444;
}

.model-icon.qr {
    color: #3b82f6;
}

.model-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.model-card p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }

    .logo-container h3 {
        font-size: 1.25rem;
    }

    .logo-container p,
    .nav-link span {
        display: none;
    }

    .main-content {
        margin-left: 70px;
    }

    .page-header {
        flex-direction: column;
        gap: 1rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }
}
