/* Custom styles for JobSavvy application */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

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

.navbar-brand i {
    margin-right: 10px;
}

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

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.job-card {
    border-left: 4px solid var(--primary-color);
}

.job-card:hover {
    border-left-color: var(--success-color);
}

/* Search Box */
.input-group-lg input {
    font-size: 1.1rem;
    padding: 15px;
}

.input-group-lg .btn {
    font-size: 1.1rem;
    padding: 15px 25px;
}

/* Job Description */
.job-description {
    line-height: 1.8;
    color: #333;
    white-space: pre-wrap;
}

.bullet-points {
    line-height: 1.8;
    color: #555;
}

/* Badges */
.badge {
    font-size: 0.85rem;
    padding: 5px 10px;
    margin-right: 5px;
    font-weight: 500;
}

/* Footer */
.footer {
    padding: 20px 0;
    margin-top: 50px;
    background-color: #fff;
    border-top: 2px solid #dee2e6;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Example Search Buttons */
.example-search {
    transition: all 0.2s;
}

.example-search:hover {
    transform: scale(1.05);
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .input-group-lg input,
    .input-group-lg .btn {
        font-size: 1rem;
        padding: 12px;
    }

    .card {
        margin-bottom: 20px;
    }
}

/* Link Styles */
a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.2s;
}

a:hover {
    color: var(--success-color);
}

/* Button Hover Effects */
.btn {
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background-color: #5c636a;
    border-color: #565e64;
}

/* Card Header Styles */
.card-header {
    font-weight: 600;
    border-bottom: 2px solid rgba(0, 0, 0, 0.125);
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 10px 0;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Utilities */
.text-decoration-none {
    text-decoration: none !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

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

/* Dark theme styles */
[data-bs-theme="dark"] {
    --bs-body-color: #dee2e6;
    --bs-body-bg: #212529;
    --bs-body-color-rgb: 222, 226, 230;
    --bs-body-bg-rgb: 33, 37, 41;
}

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

[data-bs-theme="dark"] .navbar {
    background-color: #1a1d20 !important;
}

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

[data-bs-theme="dark"] .input-group-text {
    background-color: #1a1d20;
    border-color: #373b3e;
}

[data-bs-theme="dark"] .btn-outline-primary {
    color: #6ea8fe;
    border-color: #6ea8fe;
}

[data-bs-theme="dark"] .btn-outline-primary:hover {
    background-color: #6ea8fe;
    color: #212529;
}

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

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

/* Smooth transition for theme switching */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.card, .navbar, .form-control, .btn, .alert {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
