:root {
    --primary: #e19f3d;
    --primary-dark: #c38321;
    --secondary: #322d67;
    --bg-light: #F8F9FA;
    --bg-dark: #1A1A1A;
    --text-main: #333;
    --text-light: #666;
    --white: #FFFFFF;
    --danger: #E74C3C;
    --success: #2ECC71;
    --warning: #F1C40F;
    --info: #3498DB;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
}

/* Auth Pages */
.auth-wrapper {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary) 0%, #1e1b40 100%);
}

.auth-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
    animation: fadeIn 0.5s ease;
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 1rem;
}

.auth-logo h1 {
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sidebar Logo */
.sidebar-logo {
    max-width: 100%;
    height: auto;
    max-height: 50px;
    display: block;
    margin: 0 auto;
}

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

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--secondary);
    color: var(--white);
    transition: var(--transition);
    flex-shrink: 0;
}

.sidebar-header {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-menu {
    list-style: none;
    padding: 1rem 0;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.sidebar-menu li a:hover, .sidebar-menu li a.active {
    color: var(--white);
    background: rgba(255,255,255,0.05);
    border-left-color: var(--primary);
}

.sidebar-menu li a i {
    margin-right: 10px;
    font-size: 1.2rem;
    width: 25px;
}

/* Main Content */
.main-panel {
    flex-grow: 1;
    overflow-y: auto;
    padding: 2rem;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

/* Components */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.btn {
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

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

.btn-secondary { background: var(--secondary); color: var(--white); }
.btn-secondary:hover { opacity: 0.9; }

/* Dashboard Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    border-bottom: 4px solid var(--primary);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.stat-value { font-size: 2.2rem; font-weight: 800; color: var(--secondary); }
.stat-label { color: var(--text-light); font-size: 0.85rem; text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }
.stat-icon { font-size: 2.5rem; color: rgba(0,0,0,0.05); position: absolute; right: 1.5rem; bottom: 1rem; }

/* Forms */
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    outline: none;
}
.form-control:focus { border-color: var(--primary); }

/* Tables */
.table-responsive { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 1rem; text-align: left; border-bottom: 1px solid #eee; }
th { background: #fcfcfc; color: var(--text-light); font-weight: 600; }

/* Status Badges */
.badge {
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}
.badge-diagnosis { background: #E3F2FD; color: #1976D2; border: 1px solid #BBDEFB; }
.badge-repair { background: #FFF3E0; color: #F57C00; border: 1px solid #FFE0B2; }
.badge-waiting { background: #FCE4EC; color: #D81B60; border: 1px solid #F8BBD0; }
.badge-done { background: #E8F5E9; color: #388E3C; border: 1px solid #C8E6C9; }
.badge-delivered { background: #F3E5F5; color: #7B1FA2; border: 1px solid #E1BEE7; }
.badge-late { background: #FFEBEE; color: #C62828; border: 1px solid #FFCDD2; }
.badge-total { background: #F5F5F5; color: #616161; border: 1px solid #E0E0E0; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .wrapper { flex-direction: column; }
    .sidebar { width: 100%; }
}
