/* AdminLTE + Bootstrap + Custom ERP Styles */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap');

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

body {
    font-family: 'Nunito', sans-serif;
    background-color: #f4f6f9;
    color: #1a1f2e;
    line-height: 1.6;
}

/* AdminLTE Override */
.main-header {
    background-color: #fff !important;
    border-bottom: 1px solid #4b5458 !important;
}

.main-header .navbar {
    background-color: #343a40 !important;
}

.main-sidebar {
    background-color: #343a40 !important;
}

.content-wrapper {
    background-color: #f4f6f9 !important;
    min-height: calc(100vh - 57px);
}

/* Form Styles */
.form-control {
    border-radius: 0.375rem;
    border: 1px solid #d1d5db;
    padding: 0.75rem;
}

.btn {
    border-radius: 0.375rem;
    font-weight: 500;
}

/* Card Styles */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    border: 1px solid #e5e7eb;
}

.card-header {
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
}

/* Table Styles */
.table {
    background-color: white;
}

.table th {
    background-color: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
    font-weight: 600;
}

/* Navigation */
.nav-link {
    color: #d1d5db;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 0.25rem;
}

.nav-link:hover {
    background-color: #f3f4f6;
    color: #1a202c;
}

.nav-link.active {
    background-color: #3b82f6;
    color: white;
}

/* Alert Styles */
.alert {
    border-radius: 0.5rem;
    border: none;
    padding: 1rem;
}

.alert-success {
    background-color: #10b981;
    color: white;
}

.alert-danger {
    background-color: #ef4444;
    color: white;
}

.alert-warning {
    background-color: #f59e0b;
    color: #92400e;
}

.alert-info {
    background-color: #3b82f6;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

/* Dark Theme Support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1f2e;
        color: #e8eaf0;
    }
    
    .card {
        background-color: #2d3748;
        border-color: #4a5568;
        color: #e8eaf0;
    }
    
    .form-control {
        background-color: #2d3748;
        border-color: #4a5568;
        color: #e8eaf0;
    }
}
