/* Autotrust claim check (demo) - Custom Styles */

/* Table Responsive Fixes */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 1px;
}

/* Ensure OE number column is always visible */
#parts-table th:nth-child(5),
#parts-table td:nth-child(5) {
    min-width: 120px;
    white-space: nowrap;
    text-align: center !important;
    font-weight: 500;
    font-family: monospace;
    font-size: 0.9rem;
    background-color: rgba(13, 110, 253, 0.1);
    border-left: 2px solid rgba(13, 110, 253, 0.3);
}

/* Highlight OE number column header */
#parts-table th:nth-child(5) {
    background-color: rgba(13, 110, 253, 0.2) !important;
    font-weight: 600;
}

:root {
    --gt-primary: #2563eb;
    --gt-primary-dark: #1d4ed8;
    --gt-secondary: #64748b;
    --gt-success: #059669;
    --gt-warning: #d97706;
    --gt-danger: #dc2626;
    --gt-info: #0284c7;
    --gt-light: #f8fafc;
    --gt-dark: #1e293b;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f1f5f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

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

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Cards */
.card {
    border: none;
    border-radius: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card-header {
    border-bottom: none;
    border-radius: 0.75rem 0.75rem 0 0 !important;
    font-weight: 600;
}

.card-title {
    margin-bottom: 0;
}

/* Forms */
.form-control {
    border-radius: 0.5rem;
    border: 2px solid #e2e8f0;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--gt-primary);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

.form-control-lg {
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
}

.form-label {
    font-weight: 600;
    color: var(--gt-dark);
    margin-bottom: 0.5rem;
}

.form-text {
    color: var(--gt-secondary);
    font-size: 0.875rem;
}

/* Buttons */
.btn {
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gt-primary), var(--gt-primary-dark));
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gt-primary-dark), #1e40af);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, var(--gt-success), #047857);
    box-shadow: 0 4px 6px rgba(5, 150, 105, 0.2);
}

.btn-outline-secondary {
    border: 2px solid var(--gt-secondary);
    color: var(--gt-secondary);
}

.btn-outline-secondary:hover {
    background-color: var(--gt-secondary);
    border-color: var(--gt-secondary);
    transform: translateY(-1px);
}

/* Alerts */
.alert {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.alert-dismissible .btn-close {
    padding: 1rem;
}

.alert-success {
    background: linear-gradient(135deg, #dcfdf7, #a7f3d0);
    color: var(--gt-success);
    border-left: 4px solid var(--gt-success);
}

.alert-danger {
    background: linear-gradient(135deg, #fef2f2, #fecaca);
    color: var(--gt-danger);
    border-left: 4px solid var(--gt-danger);
}

.alert-info {
    background: linear-gradient(135deg, #f0f9ff, #bae6fd);
    color: var(--gt-info);
    border-left: 4px solid var(--gt-info);
}

/* Badges */
.badge {
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
}

/* List Groups */
.list-group-item {
    border: none;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 0;
}

.list-group-item:last-child {
    border-bottom: none;
}

/* Code Blocks */
pre {
    border-radius: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.4;
    max-height: 400px;
    overflow-y: auto;
}

pre code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

/* Footer */
.footer {
    background-color: var(--gt-light);
    border-top: 1px solid #e2e8f0;
    margin-top: auto;
}

/* Automotive Theme Enhancements */
.card-body i.fa-car,
.card-body i.fa-wrench,
.card-body i.fa-cog {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Feature Cards */
.card.border-0 {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.card.border-0:hover {
    background: rgba(255, 255, 255, 0.95);
}

/* Loading States */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .card-body {
        padding: 1.5rem 1rem;
    }
    
    .btn-lg {
        padding: 0.625rem 1.25rem;
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--gt-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gt-primary);
}

/* Focus Indicators */
.btn:focus,
.form-control:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

/* Success Indicators */
.border-success {
    border-color: var(--gt-success) !important;
}

.bg-success {
    background: linear-gradient(135deg, var(--gt-success), #047857) !important;
}

/* Professional Polish */
.shadow-sm {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

.shadow {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}
