/* Custom styles for EL Engineering Consultants Dashboard */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

/* Sidebar Styles */
.sidebar {
    width: 320px;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.sidebar-header {
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.sidebar-link {
    background-color: transparent;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.sidebar-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
    color: #fff !important;
}

.sidebar-link:hover small {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Colored Sidebar Links */
.sidebar-link-primary {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    border: 1px solid rgba(0, 102, 204, 0.3);
}

.sidebar-link-primary:hover {
    background: linear-gradient(135deg, #0077dd 0%, #0055aa 100%);
    border-color: rgba(0, 102, 204, 0.5);
}

.sidebar-link-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.sidebar-link-success:hover {
    background: linear-gradient(135deg, #34ce57 0%, #25914b 100%);
    border-color: rgba(40, 167, 69, 0.5);
}

.sidebar-link-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #212529 !important;
}

.sidebar-link-warning:hover {
    background: linear-gradient(135deg, #ffcd39 0%, #f1b700 100%);
    border-color: rgba(255, 193, 7, 0.5);
    color: #212529 !important;
}

.sidebar-link-warning small {
    color: rgba(33, 37, 41, 0.7) !important;
}

.sidebar-link-warning:hover small {
    color: rgba(33, 37, 41, 0.8) !important;
}

.sidebar-link-info {
    background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
    border: 1px solid rgba(23, 162, 184, 0.3);
}

.sidebar-link-info:hover {
    background: linear-gradient(135deg, #1ac6de 0%, #138496 100%);
    border-color: rgba(23, 162, 184, 0.5);
}

.sidebar-link-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.sidebar-link-danger:hover {
    background: linear-gradient(135deg, #e84960 0%, #d62c3e 100%);
    border-color: rgba(220, 53, 69, 0.5);
}

.sidebar-link-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #545b62 100%);
    border: 1px solid rgba(108, 117, 125, 0.3);
}

.sidebar-link-secondary:hover {
    background: linear-gradient(135deg, #7d8a96 0%, #6c757d 100%);
    border-color: rgba(108, 117, 125, 0.5);
}

.sidebar-link-purple {
    background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%);
    border: 1px solid rgba(111, 66, 193, 0.3);
}

.sidebar-link-purple:hover {
    background: linear-gradient(135deg, #8357d1 0%, #6741b8 100%);
    border-color: rgba(111, 66, 193, 0.5);
}

/* Main Content Styles */
.main-content {
    margin-left: 320px;
    min-height: 100vh;
    background-color: #f8f9fa;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Button Styles */
.btn {
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Primary Colors */
.text-primary {
    color: #0066cc !important;
}

.bg-primary {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%) !important;
}

.display-4 {
    font-weight: 700;
}

/* KPI Cards */
.card.border-primary {
    border-color: #0066cc !important;
    border-width: 2px !important;
}

.card.border-success {
    border-color: #28a745 !important;
    border-width: 2px !important;
}

.card.border-warning {
    border-color: #ffc107 !important;
    border-width: 2px !important;
}

.card.border-info {
    border-color: #17a2b8 !important;
    border-width: 2px !important;
}

/* Core Values Section */
.bg-light.rounded {
    transition: all 0.3s ease;
}

.bg-light.rounded:hover {
    background-color: #e9ecef !important;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        min-height: auto;
        padding: 0 !important;
    }
    
    .sidebar-header {
        padding: 1rem !important;
        text-align: center;
    }
    
    .sidebar-nav {
        padding: 0.5rem !important;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    .sidebar-link {
        margin-bottom: 0;
        padding: 0.75rem !important;
        font-size: 0.85rem;
    }
    
    .sidebar-link i {
        font-size: 1.2rem !important;
        margin-right: 0.5rem !important;
    }
    
    .sidebar-link small {
        display: none;
    }
    
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
    
    .row.g-4 {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.75rem;
    }
}

@media (max-width: 992px) {
    .sidebar {
        width: 280px;
    }
    
    .main-content {
        margin-left: 280px;
    }
}

/* Animation for page load */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    animation: fadeIn 0.6s ease-out;
}

.sidebar-link {
    animation: fadeIn 0.3s ease-out;
}

/* Print styles */
@media print {
    .sidebar {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
    }
}