/* Main variables */
:root {
    --primary-color: #b70039;
    --secondary-color: #8b0029;
    --accent-color: #27ae60;
    --background-color: #f8f9fa;
    --card-color: #ffffff;
    --text-color: #333333;
    --border-color: #e0e0e0;
    --error-color: #e74c3c;
    --success-color: #2ecc71;
}

/* Global styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
}

/* Header styles */
.header {
    text-align: center;
    margin-bottom: 2rem;
}

.header h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

.header p {
    color: #666;
    font-size: 1.1rem;
}

/* Landing page cards */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background-color: var(--card-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.card-icon {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem;
    text-align: center;
}

.card-icon i {
    font-size: 3rem;
}

.card-content {
    padding: 1.5rem;
}

.card-content h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.card-content p {
    margin-bottom: 1.5rem;
    color: #666;
}

/* Form styles */
.form-container {
    background-color: var(--card-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
    background-color: white;
    appearance: auto;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Button styles */
.btn, .btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
    text-align: center;
}

.btn-primary,
.btn.btn-primary,
button.btn-primary,
input[type="submit"].btn-primary {
    background: var(--primary-color, #b70039);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.6em 1.4em;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(183, 0, 57, 0.08);
    transition: background 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.btn-primary:hover,
.btn.btn-primary:hover,
button.btn-primary:hover,
input[type="submit"].btn-primary:hover {
    background: #8b0029 !important;
    color: #fff;
    box-shadow: 0 4px 16px rgba(183, 0, 57, 0.18);
    /* Remove any gradient or bluish color on hover */
    background-image: none !important;
}

/* Disabled button style for .btn and .btn-primary */
.btn:disabled,
.btn[disabled],
.btn-primary:disabled,
.btn-primary[disabled] {
    background-color: #cccccc !important;
    color: #888888 !important;
    cursor: not-allowed !important;
    opacity: 0.65;
    box-shadow: none;
}

/* Response box */
.response-container {
    margin-top: 2rem;
}

.response {
    background-color: #f3f4f6;
    border-radius: 4px;
    padding: 1rem;
    white-space: pre-wrap;
    font-family: monospace;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.response.visible {
    display: block;
}

/* Form footer */
.form-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

.form-footer p {
    margin-bottom: 0.5rem;
}

/* Verification and health sections */
.verification-section, .health-section {
    text-align: center;
    margin-bottom: 2rem;
}

.verification-section p, .health-section p {
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem;
    background-color: #f1f1f1;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #666;
}

/* File input styling */
input[type="file"] {
    padding: 0.5rem 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .feature-cards {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 1rem;
    }

    .header h1 {
        font-size: 2rem;
    }
}


/* Add these CSS styles to your styles.css file */

.resume-parsing-container {
    margin-top: 20px;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.resume-parsing-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.resume-section {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.resume-section h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.resume-content {
    max-height: 500px;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 10px;
}

.json-content {
    margin: 0;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.json-key {
    color: #0066cc;
}

.json-string {
    color: #008800;
}

.json-number {
    color: #aa0000;
}

.json-boolean {
    color: #b200b2;
}

.json-null {
    color: #808080;
}

.error-message {
    color: #d32f2f;
    padding: 10px;
    border-left: 4px solid #d32f2f;
    background-color: #ffebee;
}

.error-message i {
    margin-right: 5px;
}

/* Candidate list styles */
.candidate-filename {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.candidate-filename i {
    margin-right: 8px;
    color: #555;
}

.candidate-meta {
    font-size: 0.9rem;
    color: #666;
    margin-left: 5px;
}

/* Job group collapse/expand styles */
.job-candidates {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.job-candidates.expanded {
    max-height: 5000px; /* Large enough to accommodate all candidates */
    transition: max-height 0.5s ease-in;
}

.toggle-job-candidates {
    cursor: pointer;
    margin-right: 8px;
    transition: transform 0.3s;
}

.toggle-all-container {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

textarea {
    width: 100%;
    box-sizing: border-box; /* ensures padding/borders don't break layout */
    resize: vertical; /* optional: allows vertical resizing only */
}

/* Removed sidebar-nav styles from styles.css. These are now in sidebar_old.css. */

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.main-content {
    margin-left: 260px;
    flex: 1;
    padding: 2rem;
    min-height: 100vh;
    background: #fff;
    transition: margin-left 0.3s ease;
}

/* Responsive main content for tablet screens */
@media (max-width: 900px) {
    .main-content {
        margin-left: 220px;
        padding: 1.5rem;
    }
}

/* Responsive main content for mobile screens */
@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 0.75rem;
    }
}

.custom-file-upload {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.custom-file-upload input[type="file"] {
    display: none;
}

.custom-file-upload label[for="cv_file"] {
    display: inline-flex;
    align-items: center;
    background: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    margin-right: 16px;
    margin-bottom: 0;
}

.custom-file-upload label[for="cv_file"] i {
    margin-right: 8px;
    font-size: 1.2em;
}

.custom-file-upload label[for="cv_file"]:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Optional: show selected file names */
#cv_file.selected + .file-name-preview {
    display: inline-block;
}

.file-name-preview {
    font-size: 0.98rem;
    color: #555;
    border: 1px solid #e0e0e0;
    background: #fafafa;
    border-radius: 4px;
    padding: 6px 12px;
    min-width: 120px;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: none;
    margin-left: 8px;
}

/* Settings page specific styles */
.settings-page-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    background: var(--background-color);
}

.settings-main-content {
    background: var(--card-color);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.settings-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.settings-form-group label {
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.settings-form-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
}

.settings-form-group select {
    padding: 0.6rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    font-size: 1rem;
}

.settings-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.7em 1.5em;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(183, 0, 57, 0.08);
    transition: background 0.2s, box-shadow 0.2s;
    cursor: pointer;
    margin-top: 1rem;
}

.settings-btn:hover {
    background: var(--secondary-color);
}

.settings-response {
    margin-top: 1.5rem;
    font-size: 1rem;
    color: var(--success-color);
    text-align: center;
}

/* Job List Page Styles */
.job-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.job-card {
    background: var(--card-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.2s, transform 0.2s;
}

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

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.job-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.job-company {
    color: #666;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.job-status {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-color);
    background: #eafaf1;
    border-radius: 8px;
    padding: 0.4em 1em;
}

.job-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    color: #888;
    font-size: 0.98rem;
}

.job-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4em;
}

.job-description {
    color: #444;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.5;
}

.job-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin-bottom: 1rem;
}

.skill-tag {
    background: #f3f4f6;
    color: var(--primary-color);
    border-radius: 6px;
    padding: 0.3em 0.8em;
    font-size: 0.95em;
    font-weight: 500;
}

.job-actions {
    display: flex;
    gap: 0.7em;
    flex-wrap: wrap;
}

/* Search and filter styles */
.search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.search-bar input[type="text"] {
    padding: 0.8rem 1.2rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    width: 260px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.search-bar input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(183, 0, 57, 0.10);
}

.search-bar .btn {
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    font-size: 1rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    transition: background 0.2s;
}

.search-bar .btn:hover {
    background: var(--secondary-color);
}

.filters {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filters select {
    padding: 0.8rem 1.2rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.filters select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(183, 0, 57, 0.10);
}

.attendee-badge {
    display: inline-flex;
    align-items: center;
    background: #fce4ec;
    color: #b70039;
    border-radius: 20px;
    font-size: 0.95em;
    font-weight: 500;
    padding: 0.35em 0.9em 0.35em 0.9em;
    margin-right: 6px;
    margin-bottom: 6px;
    text-transform: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.attendee-badge .attendee-remove {
    background: none;
    border: none;
    color: #b70039;
    font-size: 1.1em;
    margin-left: 8px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

.attendee-badge .attendee-remove:hover {
    color: #8b0029;
}

.profile-section.cv-section,
.profile-section.upload-section,
.profile-section.candidate-section {
    background: var(--card-color, #fff);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color, #e0e0e0);
    transition: box-shadow 0.2s, transform 0.2s;
}

.profile-section.cv-section:hover,
.profile-section.upload-section:hover,
.profile-section.candidate-section:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.13);
    transform: translateY(-2px);
}

.btn-disabled {
    background-color: #cccccc !important;
    color: #888888 !important;
    cursor: not-allowed !important;
    opacity: 0.65;
    box-shadow: none;
}

.header-bar {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 999;
    margin-left: 260px;
    transition: margin-left 0.3s ease;
}

.header-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.header-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Responsive header for tablet screens */
@media (max-width: 900px) {
    .header-bar {
        margin-left: 220px;
    }
}

/* Responsive header for mobile screens */
@media (max-width: 768px) {
    .header-bar {
        margin-left: 0;
        padding: 12px 16px;
    }

    .header-container {
        padding: 0 10px;
    }

    .header-logo {
        height: 45px;
    }
}

@media (max-width: 480px) {
    .header-bar {
        padding: 10px 12px;
    }

    .header-logo {
        height: 40px;
    }
}

/* Modal styles for delete confirmation with smooth transition and blue overlay */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: rgba(33, 150, 243, 0.10); /* subtle blue overlay */
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.4,0,0.2,1);
}

.modal.show {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--card-color, #fff);
    margin: 10% auto;
    padding: 2rem 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color, #e0e0e0);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    max-width: 400px;
    text-align: center;
    position: relative;
    opacity: 0;
    transform: scale(0.97) translateY(30px);
    transition: opacity 0.35s cubic-bezier(0.4,0,0.2,1), transform 0.35s cubic-bezier(0.4,0,0.2,1);
}

.modal.show .modal-content {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.modal-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 2rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    font-size: 1.5rem;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--primary-color);
}

