/* Custom Styles for Rental Wear Management System */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.content-wrapper {
    min-height: calc(100vh - 200px);
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 56px;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    overflow-y: auto;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
    padding: 10px 15px;
}

.sidebar .nav-link:hover {
    color: var(--primary-color);
    background-color: #f8f9fa;
}

.sidebar .nav-link.active {
    color: var(--primary-color);
    background-color: #e9ecef;
}

.sidebar .nav-link i {
    margin-right: 8px;
}

/* Card Styles */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

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

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

.table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    color: #6c757d;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

/* Badge Styles */
.badge {
    padding: 0.375rem 0.75rem;
    font-weight: 500;
}

/* Button Styles */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
}

.btn-group .btn {
    margin: 0;
}

/* Form Styles */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #495057;
}

/* Alert Styles */
.alert {
    border-radius: 0.375rem;
    border-left: 4px solid;
}

.alert-success {
    border-left-color: var(--success-color);
}

.alert-danger {
    border-left-color: var(--danger-color);
}

.alert-warning {
    border-left-color: var(--warning-color);
}

.alert-info {
    border-left-color: var(--info-color);
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* Dashboard Stats Cards */
.card.bg-primary,
.card.bg-success,
.card.bg-warning,
.card.bg-danger,
.card.bg-info {
    color: white;
}

.card.bg-primary .card-footer,
.card.bg-success .card-footer,
.card.bg-warning .card-footer,
.card.bg-danger .card-footer,
.card.bg-info .card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #dee2e6;
}

.timeline > div {
    position: relative;
}

.timeline > div::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        position: relative;
        top: 0;
    }
    
    .content-wrapper {
        margin-left: 0 !important;
    }
}

/* Print styles */
@media print {
    .sidebar,
    .navbar,
    .breadcrumb,
    .btn,
    .footer {
        display: none !important;
    }
    
    .content-wrapper {
        margin-left: 0 !important;
    }
}

/* Select2 Custom Styles */
.select2-container--default .select2-selection--single {
    height: 38px;
    border: 1px solid #ced4da;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Dashboard Cards Navigation Styles */

/* Dashboard Header */
.dashboard-header h1 {
    font-weight: 700;
    color: #333;
}

.dashboard-header p {
    font-size: 1.1rem;
}

/* Module Dashboard Specific */
.module-dashboard .module-icon i {
    font-size: 4rem;
}

.module-dashboard .dashboard-header {
    padding-top: 1rem;
}

/* Navigation Cards */
.nav-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background-color: #fff;
}

.nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #dee2e6;
}

.nav-card .card-body {
    padding: 2rem 1.5rem;
}

.nav-card .card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.nav-card .card-text {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Icon Wrapper */
.nav-icon-wrapper {
    display: inline-block;
}

.nav-icon-wrapper i {
    font-size: 3.5rem;
    line-height: 1;
}

/* Icon Colors - Main modules */
.icon-customers {
    color: #0d6efd;
}

.icon-inventory {
    color: #198754;
}

.icon-jewelry {
    color: #6f42c1;
}

.icon-rentals {
    color: #0dcaf0;
}

.icon-billing {
    color: #ffc107;
}

.icon-shipments {
    color: #6c757d;
}

.icon-reports {
    color: #dc3545;
}

.icon-employees {
    color: #fd7e14;
}

/* Icon Colors - Sub-menu items */
.icon-list {
    color: #0d6efd;
}

.icon-add {
    color: #198754;
}

.icon-view {
    color: #6c757d;
}

.icon-edit {
    color: #ffc107;
}

.icon-delete {
    color: #dc3545;
}

.icon-search {
    color: #17a2b8;
}

.icon-export {
    color: #6f42c1;
}

.icon-qr {
    color: #343a40;
}

.icon-category {
    color: #e83e8c;
}

.icon-available {
    color: #20c997;
}

.icon-pending {
    color: #ffc107;
}

.icon-active {
    color: #28a745;
}

.icon-overdue {
    color: #dc3545;
}

.icon-calendar {
    color: #17a2b8;
}

.icon-invoice {
    color: #6c757d;
}

.icon-payment {
    color: #28a745;
}

.icon-deposit {
    color: #fd7e14;
}

.icon-dashboard {
    color: #0d6efd;
}

.icon-analytics {
    color: #e83e8c;
}

.icon-outbound {
    color: #17a2b8;
}

.icon-returns {
    color: #6f42c1;
}

.icon-roles {
    color: #343a40;
}

.icon-materials {
    color: #795548;
}

.icon-colors {
    color: #e91e63;
}

.icon-sizes {
    color: #9c27b0;
}

.icon-vendor {
    color: #ff9800;
}

/* Quick Stats in Module Dashboard */
.stat-item {
    padding: 1rem;
}

.stat-item h3 {
    font-weight: 700;
    font-size: 2rem;
}

.stat-item p {
    font-size: 0.9rem;
}

/* Ensure proper spacing in full-width layout */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .nav-icon-wrapper i {
        font-size: 3rem;
    }
    
    .nav-card .card-body {
        padding: 1.5rem 1rem;
    }
    
    .module-dashboard .module-icon i {
        font-size: 3.5rem;
    }
}

@media (max-width: 576px) {
    .nav-icon-wrapper i {
        font-size: 2.5rem;
    }
    
    .nav-card .card-title {
        font-size: 1rem;
    }
    
    .nav-card .card-text {
        font-size: 0.85rem;
    }
    
    .nav-card .card-body {
        padding: 1.25rem 1rem;
    }
    
    .module-dashboard .module-icon i {
        font-size: 3rem;
    }
    
    .stat-item h3 {
        font-size: 1.5rem;
    }
}