/* Custom CSS for OneScan Platform */

/* Bootstrap 5 Gradient Utilities */
.bg-gradient-primary {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%) !important;
}

.bg-gradient-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

.bg-gradient-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
}

/* Navigation Styling */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #2c5aa0 !important;
    padding: 0.25rem 0.5rem;
}

.navbar-brand img {
    height: 28px;
    width: auto;
    transition: opacity 0.2s ease;
}

.navbar-brand img:hover {
    opacity: 0.8;
}

.navbar-light .navbar-nav .nav-link {
    color: #495057 !important;
    font-weight: 500;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: #2c5aa0 !important;
}

.navbar-light .navbar-nav .dropdown-menu {
    border: 1px solid #dee2e6;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.navbar {
    padding: 0.75rem 1rem;
}

/* Main Layout */
.border-left-primary {
    border-left: 0.25rem solid #2c5aa0 !important;
}

.border-left-success {
    border-left: 0.25rem solid #28a745 !important;
}

.border-left-info {
    border-left: 0.25rem solid #17a2b8 !important;
}

.border-left-warning {
    border-left: 0.25rem solid #ffc107 !important;
}

/* Cards */
.card {
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15) !important;
}

.card .card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
}

/* Buttons */
.btn-primary {
    background-color: #2c5aa0;
    border-color: #2c5aa0;
}

.btn-primary:hover {
    background-color: #1e3d6f;
    border-color: #1a3762;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.btn-warning {
    background-color: #f6c23e;
    border-color: #f6c23e;
}

.btn-danger {
    background-color: #e74a3b;
    border-color: #e74a3b;
}

/* Navigation */
.navbar-brand {
    font-weight: bold;
    font-size: 1.25rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
}

/* Tables */
.table {
    color: #5a5c69;
}

.table thead th {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* DataTables Customization */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
    color: #5a5c69;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: #5a5c69;
}

/* Forms */
.form-control {
    border: 1px solid #d1d3e2;
    border-radius: 0.35rem;
    color: #6e707e;
    font-size: 0.85rem;
    line-height: 1.5;
    padding: 0.375rem 0.75rem;
}

.form-control:focus {
    border-color: #bac8f3;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

/* Status Badges */
.status-active {
    background-color: #1cc88a;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

.status-inactive {
    background-color: #e74a3b;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

.status-pending {
    background-color: #f6c23e;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

/* Chart containers */
.chart-area {
    position: relative;
    height: 10rem;
    width: 100%;
}

.chart-pie {
    position: relative;
    height: 15rem;
    width: 100%;
}

/* Text utilities */
.text-xs {
    font-size: 0.7rem;
}

.text-gray-800 {
    color: #5a5c69 !important;
}

.text-gray-300 {
    color: #dddfeb !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-columns {
        column-count: 1;
    }
    
    .navbar-nav {
        flex-direction: column;
    }
    
    .chart-area,
    .chart-pie {
        height: 8rem;
    }
}

/* Legacy application styling compatibility */
.legacy-table {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.9rem;
}

.legacy-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    margin-bottom: 1rem;
}

.legacy-card {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Animation utilities */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Loading spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-border-lg {
    width: 3rem;
    height: 3rem;
}

/* Footer */
footer {
    margin-top: auto;
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    .form-control {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
}

/* Enhanced Breadcrumb Styling - Minimalist Card Style */
.breadcrumb-wrapper {
    background: #ffffff !important;
    border-radius: 12px;
    margin-bottom: 1.5rem !important;
    position: relative;
    overflow: hidden;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 0.75rem 1.25rem !important;
}

.breadcrumb-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #2c5aa0 0%, #4facfe 100%);
    pointer-events: none;
}

.custom-breadcrumb {
    position: relative;
    z-index: 1;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
}

.custom-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: #adb5bd;
    font-size: 0.875rem;
    font-weight: 400;
    padding: 0 0.5rem;
    vertical-align: middle;
}

.custom-breadcrumb .breadcrumb-item a {
    color: #6c757d !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
}

.custom-breadcrumb .breadcrumb-item a:hover {
    color: #2c5aa0 !important;
    background-color: #f8f9fa;
    transform: none;
    box-shadow: none;
}

.custom-breadcrumb .breadcrumb-item.active {
    color: #2c5aa0 !important;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    background: none;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
}

.custom-breadcrumb i {
    font-size: 0.75rem;
    margin-right: 0.375rem;
    opacity: 0.7;
}

/* Responsive Breadcrumb */
@media (max-width: 768px) {
    .breadcrumb-wrapper {
        padding: 0.5rem 1rem !important;
        border-radius: 8px;
    }
    
    .custom-breadcrumb {
        font-size: 0.8rem;
    }
    
    .custom-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
        font-size: 0.75rem;
        padding: 0 0.25rem;
    }
}

/* Alternative Breadcrumb Styles - Add these classes to try different looks */

/* Option 2: Pill/Badge Style Breadcrumbs */
.breadcrumb-pills .breadcrumb-wrapper {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0.5rem 0 !important;
}

.breadcrumb-pills .breadcrumb-wrapper::before {
    display: none;
}

.breadcrumb-pills .custom-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-pills .custom-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "";
    padding: 0;
}

.breadcrumb-pills .custom-breadcrumb .breadcrumb-item a {
    background: #e9ecef;
    color: #6c757d !important;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid #dee2e6;
}

.breadcrumb-pills .custom-breadcrumb .breadcrumb-item a:hover {
    background: #2c5aa0;
    color: white !important;
    border-color: #2c5aa0;
}

.breadcrumb-pills .custom-breadcrumb .breadcrumb-item.active {
    background: #2c5aa0;
    color: white !important;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid #2c5aa0;
}

/* Option 3: Inline Simple Style */
.breadcrumb-inline .breadcrumb-wrapper {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0.25rem 0 !important;
    margin-bottom: 1rem !important;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-inline .breadcrumb-wrapper::before {
    display: none;
}

.breadcrumb-inline .custom-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #adb5bd;
    font-size: 0.875rem;
    padding: 0 0.5rem;
}

.breadcrumb-inline .custom-breadcrumb .breadcrumb-item a {
    color: #2c5aa0 !important;
    font-size: 0.875rem;
    padding: 0.25rem 0;
}

.breadcrumb-inline .custom-breadcrumb .breadcrumb-item a:hover {
    text-decoration: underline !important;
    background: none;
}

.breadcrumb-inline .custom-breadcrumb .breadcrumb-item.active {
    color: #6c757d !important;
    font-size: 0.875rem;
    padding: 0.25rem 0;
}

/* Option 4: Modern Card with Steps */
.breadcrumb-steps .breadcrumb-wrapper {
    background: #ffffff !important;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 1rem 1.5rem !important;
}

.breadcrumb-steps .breadcrumb-wrapper::before {
    display: none;
}

.breadcrumb-steps .custom-breadcrumb {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.breadcrumb-steps .custom-breadcrumb .breadcrumb-item {
    display: flex;
    align-items: center;
    position: relative;
}

.breadcrumb-steps .custom-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "→";
    color: #adb5bd;
    font-size: 1rem;
    padding: 0 0.75rem;
    position: absolute;
    left: -1.5rem;
}

.breadcrumb-steps .custom-breadcrumb .breadcrumb-item a,
.breadcrumb-steps .custom-breadcrumb .breadcrumb-item.active {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    min-width: 100px;
    text-align: left;
}

.breadcrumb-steps .custom-breadcrumb .breadcrumb-item a {
    background: #f8f9fa;
    color: #6c757d !important;
    border: 1px solid #e9ecef;
}

.breadcrumb-steps .custom-breadcrumb .breadcrumb-item a:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.breadcrumb-steps .custom-breadcrumb .breadcrumb-item.active {
    background: linear-gradient(135deg, #2c5aa0 0%, #4facfe 100%);
    color: white !important;
    border: 1px solid #2c5aa0;
    font-weight: 600;
}

/* Enhanced Breadcrumb Visual Effects */
.breadcrumb-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
}

.custom-breadcrumb .breadcrumb-item a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.custom-breadcrumb .breadcrumb-item a:hover::before {
    left: 100%;
}

/* Icon specific colors for better visual hierarchy */
.custom-breadcrumb .breadcrumb-item a .fa-home {
    color: rgba(255, 255, 255, 0.9);
}

.custom-breadcrumb .breadcrumb-item a .fa-shield-alt {
    color: #90cdf4;
}

.custom-breadcrumb .breadcrumb-item a .fa-barcode {
    color: #a78bfa;
}

.custom-breadcrumb .breadcrumb-item a .fa-users {
    color: #fbbf24;
}

.custom-breadcrumb .breadcrumb-item a .fa-cogs {
    color: #34d399;
}

.custom-breadcrumb .breadcrumb-item.active .fa-flag {
    color: #fde047;
}

.custom-breadcrumb .breadcrumb-item.active .fa-list {
    color: #60a5fa;
}

/* Animation for page load */
@keyframes breadcrumbSlideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.breadcrumb-wrapper {
    animation: breadcrumbSlideIn 0.5s ease-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Hover effect for the entire breadcrumb wrapper */
.breadcrumb-wrapper:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* Dark mode breadcrumb support */
[data-bs-theme="dark"] .breadcrumb-wrapper {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%) !important;
}

[data-bs-theme="dark"] .breadcrumb-wrapper::after {
    background: linear-gradient(90deg, #3182ce 0%, #2b6cb0 100%);
}
