/* Custom styling for LABITEMS Quotation Generator */

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

* {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #2c3e50;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
}

.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.card-header {
    border-radius: 8px 8px 0 0 !important;
    border: none;
}

.card-header h5 {
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

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

.form-control {
    border-radius: 6px;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
}

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

.list-group-item {
    border-radius: 4px;
    border: 1px solid #e9ecef;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background-color: #f8f9fa;
}

.list-group-item:last-child {
    margin-bottom: 0;
}

.progress {
    height: 25px;
    border-radius: 6px;
    background-color: #e9ecef;
}

.progress-bar {
    background-color: #0d6efd;
}

.alert {
    border-radius: 6px;
    border: none;
    padding: 1rem 1.5rem;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.alert-info {
    background-color: #cfe2ff;
    color: #084298;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
}

.alert-warning {
    background-color: #fff3cd;
    color: #664d03;
}

footer {
    border-top: 1px solid #dee2e6;
    margin-top: 4rem;
}

/* Input file styling */
.form-control[type="file"] {
    cursor: pointer;
}

.form-control[type="file"]::file-selector-button {
    cursor: pointer;
    padding: 0.375rem 0.75rem;
    margin: -0.375rem -0.75rem;
    margin-inline-end: 0.75rem;
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
    border-radius: 0;
}

.form-control[type="file"]::file-selector-button:hover {
    background-color: #0b5ed7;
}

/* Animation for progress bar */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: slideIn 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .btn {
        padding: 0.65rem 1.25rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }
}

/* Utility classes */
.text-muted {
    color: #6c757d !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

/* Table styling (if needed for previews) */
table {
    border-collapse: collapse;
}

table th {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 0.75rem;
    font-weight: 600;
    text-align: left;
}

table td {
    border: 1px solid #dee2e6;
    padding: 0.75rem;
}

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