/* Custom styles */
.table th a {
    color: inherit;
    text-decoration: none;
}

.table th a:hover {
    color: #0d6efd;
}

/* Add spacing between buttons in table rows */
.table td .btn + .btn {
    margin-left: 0.5rem;
}

/* Style for status badges */
.badge {
    font-size: 0.875rem;
    padding: 0.4em 0.8em;
    margin: 0.2em;
    border-radius: 0.25rem;
    font-weight: 500;
    text-transform: capitalize;
}

/* Light Mode Tag Colors */
.badge.bg-primary {
    background-color: #0d6efd !important;
    color: #fff;
}

.badge.bg-secondary {
    background-color: #6c757d !important;
    color: #fff;
}

.badge.bg-success {
    background-color: #198754 !important;
    color: #fff;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
    color: #fff;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000;
}

.badge.bg-info {
    background-color: #0dcaf0 !important;
    color: #000;
}

.badge.bg-light {
    background-color: #f8f9fa !important;
    color: #000;
    border: 1px solid #dee2e6;
}

.badge.bg-dark {
    background-color: #212529 !important;
    color: #fff;
}

/* Dark Mode Tag Colors */
[data-bs-theme="dark"] .badge {
    border: 1px solid #6c757d;
    background-color: #ffffff;
    color: #000000;
}


/* Dark Mode Tag Colors */
[data-bs-theme="light"] .badge {
    border: 1px solid #6c757d;
    background-color: #000000;
    color: #ffffff;
}


/* Custom Tag Colors - Light Mode */
.badge[class*="tag-"] {
    background-color: #6c757d !important;  /* Default gray */
    color: #fff !important;
    font-size: 0.85rem;
    padding: 0.35em 0.65em;
    margin: 0.2em;
    border-radius: 0.375rem;
}

/* Custom Tag Colors - Dark Mode */
[data-bs-theme="dark"] .badge[class*="tag-"] {
    background-color: #495057 !important;
    color: #fff !important;
    border: 1px solid #6c757d;
}

/* Tag Sizes */
.table td .badge {
    font-size: 0.7rem;
    padding: 0.2em 0.5em;
    margin: 0.1em;
}

.card-body .badge {
    font-size: 0.85rem;
    padding: 0.35em 0.65em;
    margin: 0.1em;
}

/* Tag Layout */
.tag-list .badge {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.dashboard-item .badge,
.inventory-item .badge {
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}

/* Tag Hover Effects */
.badge:hover {
    opacity: 0.9;
    cursor: default;
    transition: opacity 0.2s ease;
}

/* Status Badge Colors */
.badge.bg-restock {
    background-color: #fd7e14 !important;
    color: #000 !important;
}

[data-bs-theme="dark"] .badge.bg-restock {
    background-color: #ff922b !important;
    color: #000 !important;
    border-color: #fd7e14;
}

/* Add some padding to the main content */
main.container {
    padding-bottom: 2rem;
}

/* Style for form validation feedback */
.invalid-feedback {
    display: block;
}

/* Style for flash messages */
.alert {
    margin-bottom: 1rem;
}

/* Style for dropdown menus */
.dropdown-menu {
    min-width: 200px;
}

/* Style for card headers */
.card-header {
    background-color: #f8f9fa;
}

/* Dark Mode Styles */
[data-bs-theme="dark"] {
    --bs-body-bg: #212529;
    --bs-body-color: #f8f9fa;
}

[data-bs-theme="dark"] .card {
    background-color: #2b3035;
    border-color: #373b3e;
}

[data-bs-theme="dark"] .table {
    --bs-table-color: #f8f9fa;
    --bs-table-striped-color: #f8f9fa;
    --bs-table-hover-color: #f8f9fa;
}

[data-bs-theme="dark"] .table thead th {
    color: #ffffff;
    font-weight: 600;
    border-bottom-color: #495057;
}

[data-bs-theme="dark"] .table thead th a {
    color: #ffffff !important;
    text-decoration: none;
}

[data-bs-theme="dark"] .table thead th a:hover {
    color: #0dcaf0 !important;
}

[data-bs-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) {
    --bs-table-accent-bg: rgba(255, 255, 255, 0.05);
    color: #f8f9fa;
}

[data-bs-theme="dark"] .table-striped > tbody > tr:nth-of-type(even) {
    color: #f8f9fa;
}

/* Ensure links and buttons remain visible in dark mode */
[data-bs-theme="dark"] .btn-outline-info,
[data-bs-theme="dark"] .btn-outline-warning,
[data-bs-theme="dark"] .btn-outline-success,
[data-bs-theme="dark"] .btn-outline-danger {
    color: #f8f9fa;
}

/* Keep icon colors */
[data-bs-theme="dark"] .btn-outline-info:hover,
[data-bs-theme="dark"] .btn-outline-warning:hover,
[data-bs-theme="dark"] .btn-outline-success:hover,
[data-bs-theme="dark"] .btn-outline-danger:hover {
    color: #212529;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background-color: #1a1d20;
    border-color: #373b3e;
    color: #dee2e6;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background-color: #1a1d20;
    border-color: #0d6efd;
    color: #dee2e6;
}

/* Dark mode toggle button */
.theme-toggle {
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.theme-toggle i {
    font-size: 1.2rem;
}

/* Tablet Interface Styles */
@media (max-width: 768px) {
    /* Larger text for tablet screens */
    .form-control-lg, .form-select-lg {
        font-size: 1.25rem;
        padding: 0.75rem 1rem;
        height: calc(2.5rem + 2px);
    }
    
    /* Larger buttons for touch */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1.25rem;
    }
    
    /* PIN input styling */
    #pinInput {
        letter-spacing: 0.5em;
        font-size: 2rem;
        text-align: center;
        font-family: monospace;
    }
    
    /* Barcode input styling */
    #barcodeInput {
        font-size: 1.5rem;
        font-family: monospace;
    }
    
    /* Recent checkouts list */
    .list-group-item {
        padding: 1rem;
    }
    
    .list-group-item h5 {
        font-size: 1.25rem;
    }
    
    /* Flash messages */
    .alert {
        font-size: 1.25rem;
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Card headers */
    .card-header h2 {
        font-size: 1.75rem;
    }
    
    /* Form labels */
    .form-label {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    /* Textarea height for notes */
    textarea.form-control {
        min-height: 120px;
    }
}

/* Dark mode adjustments for tablet */
[data-bs-theme="dark"] #pinInput,
[data-bs-theme="dark"] #barcodeInput {
    background-color: #2b3035;
    color: #fff;
    border-color: #495057;
}

/* Checkout page styles */
.checkout-header {
    background-color: #0d6efd;  /* Bootstrap primary blue */
    color: white;
    padding: 1rem;
    border-radius: 4px 4px 0 0;
    margin-bottom: 0;
}

.checkout-header h2 {
    font-size: 1.75rem;
    margin: 0;
    font-weight: 500;
}

.checkout-user {
    color: white;
    font-size: 1.1rem;
    margin: 0;
    padding: 0.5rem 1rem;
    background-color: rgba(0, 0, 0, 0.1);
}

/* Dark mode adjustments */
[data-bs-theme="dark"] .checkout-header {
    background-color: #0d6efd;  /* Keep the blue header in dark mode */
}

[data-bs-theme="dark"] .checkout-user {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Make form labels more visible in dark mode */
[data-bs-theme="dark"] .form-label {
    color: #e9ecef;  /* Light gray for better contrast */
}

/* Dark Mode Header Styles */
[data-bs-theme="dark"] .card-header {
    background-color: #000000;  /* Black background */
    border-bottom: 1px solid #2c2c2c;
}

[data-bs-theme="dark"] .card-header h2,
[data-bs-theme="dark"] .card-header h3,
[data-bs-theme="dark"] .card-header h4,
[data-bs-theme="dark"] .card-header h5 {
    color: #FFD700;  /* Gold text */
    font-weight: 500;
}

/* Keep the checkout header blue but with gold text */
[data-bs-theme="dark"] .checkout-header {
    background-color: #0d6efd;
}

[data-bs-theme="dark"] .checkout-header h2 {
    color: #FFD700;  /* Gold text */
}

/* Make the user info in checkout header more visible */
[data-bs-theme="dark"] .checkout-user {
    color: #FFD700;  /* Gold text */
    background-color: rgba(0, 0, 0, 0.3);  /* Darker background */
}

/* Footer Styles */
.footer {
    margin-top: 3rem;
    padding: 1rem 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Light Mode */
.footer {
    background-color: #f8f9fa;
    color: #212529;
}

.footer hr {
    border-color: rgba(0, 0, 0, 0.1);
}

.footer a {
    color: #212529;
}

.footer a:hover {
    color: #0d6efd;
}

/* Dark Mode */
[data-bs-theme="dark"] .footer {
    background-color: #212529;
    color: #f8f9fa;
}

[data-bs-theme="dark"] .footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .footer a {
    color: #f8f9fa;
}

[data-bs-theme="dark"] .footer a:hover {
    color: #0d6efd;
}

[data-bs-theme="dark"] .footer .text-muted {
    color: #adb5bd !important;
}

/* Tag styles - Dark mode */
body.dark-mode .badge {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .badge.bg-light {
    background-color: #2c3034 !important;
    color: #e9ecef;
    border-color: #373b3e;
}

body.dark-mode .badge.bg-dark {
    background-color: #1a1d20 !important;
    color: #e9ecef;
    border-color: #2c3034;
}

body.dark-mode .badge.bg-warning {
    color: #000;
}

body.dark-mode .badge.bg-info {
    color: #000;
}

/* Tag list styles */
.tag-list .badge {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Dashboard tag styles */
.dashboard-item .badge,
.inventory-item .badge {
    font-weight: 500;
    text-transform: capitalize;
}

/* Roadmap Styles */
.roadmap-column {
    min-height: 200px;
    max-height: 600px;
    overflow-y: auto;
}

.roadmap-item {
    cursor: pointer;
    transition: transform 0.2s;
}

.roadmap-item:hover {
    transform: translateY(-2px);
}

.badge.feature-request {
    background-color: #0d6efd;
    color: white;
}

.badge.bug-report {
    background-color: #dc3545;
    color: white;
}

.badge.integration {
    background-color: #198754;
    color: white;
}

.vote-btn {
    transition: all 0.2s;
}

.vote-btn:hover {
    transform: translateY(-2px);
}

.vote-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Dark mode adjustments for roadmap */
[data-bs-theme="dark"] .roadmap-item {
    background-color: #2b3035;
    border-color: #373b3e;
}

[data-bs-theme="dark"] .roadmap-item .card-body {
    color: #e9ecef;
}

[data-bs-theme="dark"] .roadmap-item .text-muted {
    color: #adb5bd !important;
}

/* Roadmap Status Colors */
.roadmap-status {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
}

.roadmap-status.open {
    background-color: var(--bs-primary);
    color: white;
}

.roadmap-status.in_progress {
    background-color: var(--bs-warning);
    color: black;
}

.roadmap-status.done {
    background-color: var(--bs-success);
    color: white;
}

[data-bs-theme="dark"] .roadmap-status.open {
    background-color: var(--bs-primary);
    color: white;
}

[data-bs-theme="dark"] .roadmap-status.in_progress {
    background-color: var(--bs-warning);
    color: black;
}

[data-bs-theme="dark"] .roadmap-status.done {
    background-color: var(--bs-success);
    color: white;
}

/* Category badge icons */
.badge i {
    margin-right: 0.3rem;
}

.badge.feature-request i {
    color: #FFD700;  /* Gold color for feature stars */
}

.badge.bug-report i {
    color: #FFFFFF;  /* White color for bug icon */
}

.badge.integration i {
    color: #FFFFFF;  /* White color for integration icon */
} 