/* Custom CSS for GAMWORKS Voucher Management System */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
}

.navbar-brand {
    font-weight: 600;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
    margin-bottom: 1.5rem;
}

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

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

.btn {
    border-radius: 0.375rem;
    font-weight: 500;
}

.badge {
    font-weight: 500;
}

.bg-primary-subtle {
    background-color: rgba(13, 110, 253, 0.12) !important;
    color: #0d6efd !important;
}

.bg-success-subtle {
    background-color: rgba(25, 135, 84, 0.12) !important;
    color: #198754 !important;
}

.bg-warning-subtle {
    background-color: rgba(255, 193, 7, 0.15) !important;
    color: #d79600 !important;
}

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

.form-control:focus,
.form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.register-item {
    border-left: 3px solid transparent;
}

.register-item:hover {
    border-left-color: #0d6efd;
}

.register-item.selected {
    border-left-color: #0d6efd;
    background-color: #0d6efd !important;
    color: white;
}

.register-item.selected .badge {
    background-color: rgba(255, 255, 255, 0.3) !important;
    color: white;
}

.register-item.selected .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

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

.beta-vouchers-page .status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background-color: #f1f3f5;
    color: #495057;
}

.beta-vouchers-page .status-pill-draft {
    background-color: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
}

.beta-vouchers-page .status-pill-validated {
    background-color: rgba(25, 135, 84, 0.15);
    color: #1b8c5d;
}

.beta-vouchers-page .status-pill-reconciled {
    background-color: rgba(102, 16, 242, 0.15);
    color: #5f31b5;
}

.beta-vouchers-page .status-chip {
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.beta-vouchers-page .list-group-item {
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.beta-vouchers-page .list-group-item:hover {
    background-color: rgba(13, 110, 253, 0.05);
    transform: translateX(2px);
}

.beta-vouchers-page .card {
    border-radius: 0.85rem;
}

.beta-vouchers-page .card-header {
    border-top-left-radius: 0.85rem;
    border-top-right-radius: 0.85rem;
}

.beta-vouchers-page .list-group {
    border-bottom-left-radius: 0.85rem;
    border-bottom-right-radius: 0.85rem;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .btn {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    .card-header .btn,
    footer {
        display: none !important;
    }
    
    .card {
        border: none;
        box-shadow: none;
    }
}

/* 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;
}

/* Tour System Styling */
.shepherd-theme-custom {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.shepherd-theme-custom .shepherd-content {
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 0;
}

.shepherd-theme-custom .shepherd-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    padding: 1.25rem 1.5rem;
    border-radius: 0.5rem 0.5rem 0 0;
    border-bottom: none;
}

.shepherd-theme-custom .shepherd-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: white;
}

.shepherd-theme-custom .shepherd-cancel-icon {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    font-weight: 600;
}

.shepherd-theme-custom .shepherd-cancel-icon:hover {
    color: white;
}

.shepherd-theme-custom .shepherd-text {
    padding: 1.5rem;
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.6;
}

.shepherd-theme-custom .shepherd-text p {
    margin-bottom: 0.75rem;
}

.shepherd-theme-custom .shepherd-text p:last-child {
    margin-bottom: 0;
}

.shepherd-theme-custom .shepherd-text ul,
.shepherd-theme-custom .shepherd-text ol {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
}

.shepherd-theme-custom .shepherd-text li {
    margin-bottom: 0.5rem;
}

.shepherd-theme-custom .shepherd-text strong {
    color: #212529;
    font-weight: 600;
}

.shepherd-theme-custom .shepherd-text small {
    color: #6c757d;
    font-size: 0.875rem;
}

.shepherd-theme-custom .shepherd-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 0.5rem 0.5rem;
    background: #f8f9fa;
}

.shepherd-theme-custom .shepherd-button {
    border-radius: 0.375rem;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.shepherd-theme-custom .shepherd-button-primary {
    background: #0d6efd;
    color: white;
}

.shepherd-theme-custom .shepherd-button-primary:hover {
    background: #0a58ca;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

.shepherd-theme-custom .shepherd-button-secondary {
    background: #6c757d;
    color: white;
}

.shepherd-theme-custom .shepherd-button-secondary:hover {
    background: #5c636a;
    transform: translateY(-1px);
}

.shepherd-theme-custom .shepherd-element.shepherd-has-title .shepherd-content .shepherd-cancel-icon {
    margin-top: 0.5rem;
}

/* Tour button styling */
#tour-trigger {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0,0,0,0.15), 0 0 0 0 rgba(13, 110, 253, 0.7);
    }
    50% {
        box-shadow: 0 4px 12px rgba(0,0,0,0.15), 0 0 0 10px rgba(13, 110, 253, 0);
    }
}

#tour-trigger:hover {
    animation: none;
}

/* Help Icon Styling */
.help-icon {
    display: inline-block;
    margin-left: 6px;
    color: #6c757d;
    cursor: help;
    font-size: 0.9em;
    vertical-align: middle;
    transition: color 0.2s ease, transform 0.2s ease;
    opacity: 0.7;
}

.help-icon:hover {
    color: #0d6efd;
    opacity: 1;
    transform: scale(1.1);
}

.help-icon:focus {
    color: #0d6efd;
    opacity: 1;
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
    border-radius: 50%;
}

.nav-link .help-icon,
.dropdown-item .help-icon {
    margin-left: 4px;
    font-size: 0.85em;
}

/* Bootstrap Popover customization for help icons */
.popover {
    max-width: 350px;
    font-size: 0.9rem;
}

.popover-header {
    background-color: #0d6efd;
    color: white;
    border-bottom: none;
    font-weight: 600;
}

.popover-body {
    color: #495057;
    line-height: 1.6;
}

/* Mobile responsive tour */
@media (max-width: 768px) {
    #tour-trigger {
        bottom: 20px;
        right: 20px;
        padding: 10px 20px;
        font-size: 0.875rem;
    }
    
    .shepherd-theme-custom .shepherd-content {
        max-width: 90vw;
    }
    
    .shepherd-theme-custom .shepherd-header {
        padding: 1rem 1.25rem;
    }
    
    .shepherd-theme-custom .shepherd-title {
        font-size: 1.1rem;
    }
    
    .shepherd-theme-custom .shepherd-text {
        padding: 1.25rem;
        font-size: 0.9rem;
    }
    
    .shepherd-theme-custom .shepherd-footer {
        padding: 0.75rem 1.25rem;
    }
    
    .shepherd-theme-custom .shepherd-button {
        padding: 0.4rem 1rem;
        font-size: 0.875rem;
    }
    
    .help-icon {
        font-size: 0.8em;
        margin-left: 4px;
    }
    
    .popover {
        max-width: 280px;
        font-size: 0.85rem;
    }
}

