/* Main styles for Mikundi Electronics */
:root {
    --primary-color: #ffba00;
    --secondary-color: #1d1d1d;
    --accent-color: #ffba00;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    transition: all 0.3s;
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: 0.5rem;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    margin: 0.2rem 0;
    border-radius: 0.25rem;
}

.sidebar .nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.2);
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
}

/* Sidebar Toggle */
@media (max-width: 767.98px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100%;
        z-index: 1050;
        transition: all 0.3s ease;
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .sidebar-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1040;
        background-color: rgba(0, 0, 0, 0.5);
        display: none;
    }
    
    .sidebar-backdrop.show {
        display: block;
    }
    
    main {
        width: 100%;
        margin-left: 0;
    }
}

@media (min-width: 768px) {
    .sidebar {
        transform: none !important;
        visibility: visible !important;
    }
    
    .sidebar-collapsed {
        margin-left: -16.66667%;
    }
    
    .main-expanded {
        width: 100%;
        margin-left: 0;
    }
}

/* Main Content Area */
main {
    margin-top: 10px;
    min-height: 100vh;
}

/* Card styling */
.card {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 600;
    padding: 0.75rem 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

/* Add special styling for different card types */
.card.chart-card {
    background-color: white;
}

.card.data-card {
    background-color: white;
}

.card.data-card .card-header {
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    border-bottom: 1px solid #dee2e6;
}

/* Dashboard Stats Cards */
.stats-card {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    color: white;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stats-card a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s ease;
}

.stats-card a:hover {
    color: white;
    text-decoration: underline;
}

.stats-card:not(.sales):not(.inventory):not(.expenses) {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
}

.stats-card.sales {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.stats-card.inventory {
    background: linear-gradient(135deg, #f46b45 0%, #eea849 100%);
}

.stats-card.expenses {
    background: linear-gradient(135deg, #fc4a1a 0%, #f7b733 100%);
}

.stats-icon {
    font-size: 2.5rem;
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.8);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border: none;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(37, 117, 252, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5b0fb4 0%, #1e68e3 100%);
    color: white;
    box-shadow: 0 6px 10px rgba(37, 117, 252, 0.3);
}

.btn-outline-primary {
    color: #2575fc;
    border-color: #2575fc;
}

.btn-outline-primary:hover {
    background-color: #2575fc;
    border-color: #2575fc;
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border: none;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(56, 239, 125, 0.2);
}

.btn-success:hover {
    background: linear-gradient(135deg, #0e877c 0%, #30d66b 100%);
    color: white;
    box-shadow: 0 6px 10px rgba(56, 239, 125, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #f46b45 0%, #eea849 100%);
    border: none;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(244, 107, 69, 0.2);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e35d39 0%, #e09b3c 100%);
    color: white;
    box-shadow: 0 6px 10px rgba(244, 107, 69, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #fc4a1a 0%, #f7b733 100%);
    border: none;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(252, 74, 26, 0.2);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #e84316 0%, #e9ab2d 100%);
    color: white;
    box-shadow: 0 6px 10px rgba(252, 74, 26, 0.3);
}

/* Table styles */
.table-container {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dataTables_wrapper .dataTables_length, 
.dataTables_wrapper .dataTables_filter, 
.dataTables_wrapper .dataTables_info, 
.dataTables_wrapper .dataTables_processing, 
.dataTables_wrapper .dataTables_paginate {
    margin-bottom: 10px;
    color: var(--dark-color);
}

/* Form styles */
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(255, 186, 0, 0.25);
}

label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Login page */
.login-container {
    max-width: 400px;
    margin: 80px auto;
    padding: 20px;
}

.login-logo {
    text-align: center;
    margin-bottom: 25px;
}

.login-logo img {
    max-width: 200px;
    display: block;
    margin: 0 auto;
}

.login-form {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.login-form .form-control {
    transition: box-shadow 0.2s ease;
}

.login-form .form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

/* Responsive login page */
@media (max-width: 480px) {
    .login-container {
        margin: 40px auto;
        padding: 15px;
    }
    
    .login-logo img {
        max-width: 150px;
    }
    
    .login-form {
        padding: 20px;
    }
}

/* Product images */
.product-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

/* Table styles */
.table-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

/* Sales point styles */
.product-card {
    cursor: pointer;
    transition: all 0.3s;
}

.product-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.cart-container {
    max-height: 400px;
    overflow-y: auto;
}

/* Alerts */
.alert {
    border-radius: 10px;
} 