/* Custom CSS for AIgento AI Developer Jobs Site */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* Theme colors for different user types */
:root.theme-company {
    --primary-color: #007bff;
    --theme-primary: #007bff;
    --theme-primary-dark: #0056b3;
    --theme-primary-light: #66b3ff;
}

:root.theme-developer {
    --primary-color: #007bff;
    --theme-primary: #007bff;
    --theme-primary-dark: #0056b3;
    --theme-primary-light: #66b3ff;
}

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

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

/* Theme-based navigation styling */
.theme-company .navbar.bg-primary,
.theme-company footer.bg-primary,
.theme-company .card-header.bg-primary,
.theme-company .btn.btn-primary {
    background-color: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
}

.theme-developer .navbar.bg-primary,
.theme-developer footer.bg-primary,
.theme-developer .card-header.bg-primary,
.theme-developer .btn.btn-primary {
    background-color: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
}

/* Ensure developer theme blue is applied */
.theme-developer .navbar,
.theme-developer footer {
    background-color: #007bff !important;
}

.theme-developer .btn.btn-primary:hover {
    background-color: var(--theme-primary-dark) !important;
    border-color: var(--theme-primary-dark) !important;
}

/* Job cards */
.job-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    background: white;
    margin-bottom: 1rem;
}

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

.job-card .card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--theme-primary-dark, #0056b3));
    color: white;
    border-radius: 10px 10px 0 0 !important;
}

.company-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 5px;
}

/* Buttons */
.btn-ai-match {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    color: white;
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-ai-match:hover {
    background: linear-gradient(135deg, #20c997, #28a745);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
    color: white;
}

/* Forms */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.theme-developer .form-control:focus {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-floating > .form-control {
    border-radius: 10px;
}

/* Hide green checkmarks and validation success indicators */
.form-control:valid,
.form-control.is-valid,
.was-validated .form-control:valid {
    border-color: #ced4da !important;
    background-image: none !important;
    box-shadow: none !important;
}

.form-select:valid,
.form-select.is-valid,
.was-validated .form-select:valid {
    border-color: #ced4da !important;
    background-image: none !important;
    box-shadow: none !important;
}

/* Hide any success feedback */
.valid-feedback {
    display: none !important;
}

/* Ensure focus styles remain consistent */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
}

.theme-developer .form-control:focus,
.theme-developer .form-select:focus {
    border-color: var(--theme-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
}

/* Dashboard cards */
.dashboard-card {
    border-radius: 15px;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

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

.stat-card {
    background: linear-gradient(135deg, var(--primary-color), var(--theme-primary-dark, #0056b3));
    color: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* Email verification status */
.email-verification-banner {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: #212529;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

/* Application status badges */
.status-badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-approved {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #b3d4c4;
}

.status-rejected {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f1aeb5;
}

/* Markdown content */
.markdown-content {
    line-height: 1.8;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
    color: #212529;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.markdown-content code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.markdown-content pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
}

/* File upload areas */
.file-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    background-color: #f8f9fa;
    transition: all 0.3s;
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background-color: rgba(0, 123, 255, 0.05);
}

.file-upload-area.dragover {
    border-color: var(--primary-color);
    background-color: rgba(0, 123, 255, 0.1);
}

.theme-developer .file-upload-area:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.theme-developer .file-upload-area.dragover {
    background-color: rgba(0, 123, 255, 0.1);
}

/* Company profile */
.company-header {
    background: linear-gradient(135deg, #6f42c1, var(--primary-color));
    color: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.company-logo-large {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 15px;
    background: white;
    padding: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .job-card {
        margin-bottom: 1rem;
    }
    
    .company-logo {
        width: 40px;
        height: 40px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
}

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

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--theme-primary-dark, #0056b3);
}

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

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

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

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

/* Dropdown menu z-index fix */
.navbar .dropdown-menu {
    z-index: 1050 !important;
    position: absolute !important;
}

.navbar .dropdown {
    position: relative;
}

.dropdown-menu.show {
    z-index: 1050 !important;
} 