:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
}

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Login */
.login-body {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 15px;
}

.login-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.login-title {
    color: var(--primary);
    font-weight: 700;
}

/* Sidebar */
.sidebar {
    background-color: var(--primary);
    color: white;
    height: 100vh;
    position: fixed;
    padding-top: 60px;
    width: 250px;
}

.sidebar a {
    color: white;
    padding: 15px 20px;
    display: block;
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar a:hover {
    background-color: var(--secondary);
    padding-left: 25px;
}

.sidebar a.active {
    background-color: var(--secondary);
    border-left: 4px solid white;
}

.main-content {
    margin-left: 250px;
    padding: 20px;
    padding-top: 80px;
}

.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: calc(100% - 250px);
    margin-left: 250px;
    z-index: 1000;
}

/* Cards */
.card {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    border: none;
}

.card-header {
    background-color: white;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    padding: 15px 20px;
    border-radius: 10px 10px 0 0 !important;
}

.stat-card {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.stat-card h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.stat-card p {
    color: #6c757d;
    margin: 0;
}

/* Buttons */
.btn-primary {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

/* Status badges */
.order-status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-pending {
    background-color: #ffeaa7;
    color: #d35400;
}

.status-approved {
    background-color: #d1f7c4;
    color: #27ae60;
}

.status-rejected {
    background-color: #ffcfd2;
    color: #c0392b;
}

.status-completada {
    background-color: #d6eaf8;
    color: #2874a6;
}

/* Tables */
.product-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Forms */
.form-label {
    font-weight: 600;
    margin-bottom: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding-top: 15px;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .navbar {
        width: 100%;
        margin-left: 0;
    }

    /* Estilos para cantidades monetarias */
.currency-amount {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #2c3e50;
}

.text-end .currency-amount {
    text-align: right;
    display: block;
}

/* Estilo para cantidades positivas */
.currency-positive {
    color: #27ae60;
}

/* Estilo para cantidades negativas */
.currency-negative {
    color: #e74c3c;
}

/* Alineación derecha para columnas monetarias */
.currency-column {
    text-align: right !important;
    font-family: 'Courier New', monospace;
}

/* Estilos para el sidebar con logo */
.sidebar {
    background-color: var(--primary);
    color: white;
    height: 100vh;
    position: fixed;
    padding-top: 20px;
    width: 250px;
    overflow-y: auto;
}

.sidebar-header {
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
}

.sidebar-logo {
    max-height: 50px;
    max-width: 100%;
    margin: 0 auto 10px auto;
    display: block;
    object-fit: contain;
}

.sidebar-company-name {
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 5px;
    color: white;
}

.sidebar-system-name {
    font-size: 0.75rem;
    text-align: center;
    opacity: 0.8;
    color: var(--light);
}

.sidebar-menu {
    padding: 0 10px;
}

.sidebar a {
    color: white;
    padding: 12px 15px;
    display: block;
    text-decoration: none;
    transition: all 0.3s;
    border-radius: 5px;
    margin-bottom: 5px;
}

.sidebar a:hover {
    background-color: var(--secondary);
    padding-left: 20px;
}

.sidebar a.active {
    background-color: var(--secondary);
    border-left: 4px solid white;
}

/* Ajustar contenido principal para el nuevo sidebar */
.main-content {
    margin-left: 250px;
    padding: 20px;
    padding-top: 80px;
    min-height: 100vh;
    transition: margin-left 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding-top: 15px;
    }
    
    .main-content {
        margin-left: 0;
        padding-top: 20px;
    }
    
    .sidebar-logo {
        max-height: 40px;
    }
}

}