/* Specific styles for the Job Hunter Web App */

.app-container {
    max-width: 1200px;
    margin: 2rem auto;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Tabs */
.tabs {
    display: flex;
    background-color: #2c3e50;
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.tab-button {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.tab-button.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border-bottom: 3px solid #3498db;
}

.tab-content {
    display: none;
    padding: 2rem;
}

.tab-content.active {
    display: block;
}

/* Form styling */
.form-group {
    margin-bottom: 1.2rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
}

input[type="text"],
textarea,
select {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

input[type="text"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Job items */
.job-item {
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
    padding-bottom: 35px;
}

.job-item:hover {
    background-color: #f9f9f9;
}

.job-item.selected {
    border-color: #3498db;
    background-color: rgba(52, 152, 219, 0.1);
}

.job-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.job-company, .job-location {
    font-size: 13px;
    color: #7f8c8d;
}

.job-url {
    font-size: 12px;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.job-url a {
    color: #3498db;
    text-decoration: none;
}

.job-url a:hover {
    text-decoration: underline;
}

.job-item-actions {
    position: absolute;
    bottom: 10px;
    right: 10px;
}

.view-details-btn {
    font-size: 12px;
    padding: 3px 8px;
    background-color: #f1f1f1;
    color: #333;
    border: 1px solid #ddd;
}

.view-details-btn:hover {
    background-color: #e0e0e0;
}

/* Improved job actions section */
.job-actions-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-top: 15px;
}

.job-actions-group {
    background-color: #f9f9f9;
    border-radius: 6px;
    padding: 14px;
    border-left: 3px solid #3498db;
}

.job-actions-group:nth-child(2) {
    border-left-color: #9b59b6;
}

.job-actions-group:nth-child(3) {
    border-left-color: #7f8c8d;
}

.action-group-title {
    margin: 0 0 5px 0;
    font-size: 15px;
    color: #2c3e50;
    font-weight: 600;
}

.action-group-info {
    font-size: 13px;
    color: #7f8c8d;
    margin: 0 0 10px 0;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Empty state */
.empty-state {
    text-align: center;
    color: #95a5a6;
    padding: 20px;
    font-style: italic;
}

/* Extension promotion */
.extension-promo {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 1rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.extension-promo p {
    margin: 0;
    font-size: 0.9rem;
    color: #6c757d;
}

.extension-promo a {
    text-decoration: none;
    font-weight: 600;
}

.extension-promo a:hover {
    text-decoration: underline;
}

/* Export/Import Section */
.export-import-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.export-import-buttons {
    display: flex;
    gap: 10px;
    margin: 1rem 0;
}

.warning-text {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Information text */
.info-text {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Hidden elements */
.hidden {
    display: none;
}

/* Job actions */
#job-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

/* Document generation button layout */
#generate-cv-gemini, 
#generate-cover-letter-gemini {
    margin-right: 10px;
    margin-bottom: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tab-content {
        padding: 1.5rem 1rem;
    }
    
    .export-import-buttons {
        flex-direction: column;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons button {
        width: 100%;
    }

    .skills-details {
        grid-template-columns: 1fr;
    }

    .tab-content {
        padding: 1rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .search-buttons {
        grid-template-columns: 1fr;
    }
    
    #search-ai {
        grid-column: 1;
    }
    
    .job-item {
        font-size: 0.9rem;
    }
    
    .extension-promo {
        flex-direction: column;
        padding: 0.8rem;
    }
    
    .extension-promo .promo-actions {
        margin-top: 0.5rem;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .storage-warning-content {
        flex-direction: column;
        gap: 10px;
    }

    .promo-content {
        flex-direction: column;
        text-align: center;
    }

    .skills-tracker {
        grid-template-columns: 1fr;
    }

    .job-actions-container {
        grid-template-columns: 1fr;
    }
}

/* Job status styles */
.job-status-container {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.status-label {
    font-size: 12px;
    font-weight: 600;
    margin-right: 5px;
}

.job-status-select {
    font-size: 12px;
    padding: 3px 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: 5px;
}

/* Status colors for job items */
.status-reviewing {
    border-left: 3px solid #f39c12;
}

.status-applied {
    border-left: 3px solid #3498db;
}

.status-interviewing {
    border-left: 3px solid #9b59b6;
}

.status-offer {
    border-left: 3px solid #2ecc71;
}

.status-rejected {
    border-left: 3px solid #e74c3c;
}

.status-accepted {
    border-left: 3px solid #27ae60;
}

.status-declined {
    border-left: 3px solid #7f8c8d;
}

/* Full description modal */
.full-description-modal {
    max-width: 800px;
    max-height: 80vh;
}

.full-description-content {
    max-height: 60vh;
    overflow-y: auto;
    border: 1px solid #eee;
    padding: 15px;
    background-color: #fafafa;
    margin: 15px 0;
}

.full-description-content pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
}

/* Button styles */
.primary-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

.primary-button:hover {
    background-color: #2980b9;
}

.secondary-button {
    background-color: #95a5a6;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

.secondary-button:hover {
    background-color: #7f8c8d;
}

.danger-button {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

.danger-button:hover {
    background-color: #c0392b;
}

.default-button {
    background-color: #f1f1f1;
    color: #333;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

.default-button:hover {
    background-color: #e0e0e0;
}

/* Loading indicator */
.loading-jobs {
    text-align: center;
    color: #95a5a6;
    padding: 20px;
}

/* Toggle sections */
.hiring-phrases-toggle,
.job-boards-toggle,
.doc-sites-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #3498db;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.hiring-phrases-toggle span,
.job-boards-toggle span,
.doc-sites-toggle span {
    margin-left: 5px;
}

.hiring-phrases-options,
.job-boards-options,
.doc-sites-options {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 15px;
}

.options-tip {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 8px;
    font-style: italic;
}

/* Job entry section and job list section */
.job-entry-section,
.saved-jobs-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.job-entry-section h3,
.saved-jobs-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #2c3e50;
}

/* CV JSON section */
.json-input-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.json-input-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #2c3e50;
}

/* Refresh section */
.refresh-section {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.refresh-button {
    font-size: 0.9rem;
    background-color: #f1f1f1;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    cursor: pointer;
}

.refresh-button svg {
    margin-right: 6px;
    vertical-align: middle;
}

.refresh-button span {
    margin-left: 5px;
}

.refresh-button:hover {
    background-color: #e0e0e0;
}

/* Storage warning banner */
.storage-warning {
    background-color: #f39c12;
    color: white;
    padding: 10px 20px;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.storage-warning-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.storage-warning-content p {
    margin: 0;
    padding: 5px 0;
}

.storage-warning-actions {
    display: flex;
    gap: 10px;
}

.storage-warning-actions button {
    padding: 5px 10px;
    font-size: 0.85rem;
}

@media (max-width: 480px) {
    .tabs {
        flex-direction: column;
    }
    
    .tab-button {
        padding: 0.8rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .tab-button.active {
        border-bottom: 1px solid var(--primary-color);
    }
    
    .job-description-preview {
        max-height: 50vh;
        overflow-y: auto;
    }
}

/* Welcome tour */
.welcome-tour {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    pointer-events: none;
}

.tour-highlight {
    position: absolute;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7);
    border-radius: 4px;
    z-index: 2001;
    pointer-events: none;
}

.tour-tooltip {
    position: absolute;
    z-index: 2002;
    pointer-events: auto;
}

.tour-tooltip-content {
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    padding: 15px;
    width: 300px;
}

.tour-tooltip-content h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.tour-tooltip-content p {
    margin: 0 0 15px 0;
    color: #7f8c8d;
}

.tour-tooltip-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.tour-tooltip-bottom:after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -10px;
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent white transparent;
}

.tour-tooltip-top:after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -10px;
    border-width: 10px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

/* Unified Button System */
.button-base {
    padding: 0.7rem 1.2rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    border: none;
    text-align: center;
    display: inline-block;
    font-size: 1rem;
}

.button-base:active {
    transform: translateY(1px);
}

.primary-button {
    background-color: var(--primary-color);
    color: white;
}

.primary-button:hover {
    background-color: var(--primary-dark);
}

.secondary-button {
    background-color: var(--accent-color);
    color: white;
}

.secondary-button:hover {
    background-color: var(--accent-dark);
}

.default-button {
    background-color: var(--light-gray);
    color: var(--text-color);
    border: 1px solid var(--medium-gray);
}

.default-button:hover {
    background-color: #e0e0e0;
}

.danger-button {
    background-color: var(--danger-color);
    color: white;
}

.danger-button:hover {
    background-color: #c0392b;
}

/* Make search buttons consistent */
.search-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.search-buttons button {
    min-height: 2.8rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    transition: background-color 0.3s;
}

.search-buttons button:hover {
    background-color: var(--primary-dark);
}

#search-ai {
    grid-column: 1 / span 2;
    background-color: var(--accent-color);
}

#search-ai:hover {
    background-color: var(--accent-dark);
}

/* Toggle Sections Styling */
.toggle-section {
    margin-bottom: 15px;
    border: 1px solid #eaeaea;
    border-radius: 5px;
    overflow: hidden;
}

.toggle-option {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    cursor: pointer;
}

.toggle-option input[type="checkbox"] {
    margin-right: 8px;
}

.toggle-option label {
    cursor: pointer;
    user-select: none;
    display: inline-block;
}

.toggle-option label {
    padding: 5px 0;
    flex: 1;
}

.toggle-header {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    color: var(--primary-color);
    font-weight: 600;
}

.toggle-header:hover {
    background-color: #e9ecef;
}

.toggle-icon {
    margin-right: 10px;
    transition: transform 0.2s;
}

.toggle-header .toggle-icon {
    display: inline-block;
    width: 20px;
    text-align: center;
    transition: transform 0.2s ease;
}

.toggle-option:hover {
    background-color: #f5f5f5;
    border-radius: 4px;
}

.toggle-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #f9f9f9;
    border-radius: 0 0 4px 4px;
    display: none;
}

.toggle-content.active {
    max-height: 500px;
    padding: 15px;
    border: 1px solid #eee;
    border-top: none;
    display: block;
}

.custom-option-input {
    display: flex;
    margin-top: 10px;
    gap: 5px;
}

/* Extension Promo Styling */
.extension-promo {
    background-color: #f0f7ff;
    border: 1px solid #cce0ff;
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
    position: relative;
}

.promo-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.extension-promo p {
    margin: 0;
    font-weight: 500;
    color: #2c3e50;
}

.promo-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dismiss-promo {
    background: none;
    border: none;
    color: #7f8c8d;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.dismiss-promo:hover {
    background-color: #eee;
}

/* Form Field Styling */
.form-group {
    margin-bottom: 1.2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: white;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #bdc3c7;
}

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

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-input.small {
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
}

.form-info {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--dark-gray);
}

.form-url-input {
    font-family: monospace;
    font-size: 0.9rem;
}

/* Gemini integration styles */
.gemini-button {
    background-color: #1a73e8; /* Google blue */
    margin-bottom: 10px;
}

.gemini-button:hover {
    background-color: #1558c4;
}

.gemini-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.claude-button {
    background-color: #9b59b6;
}

.claude-button:hover {
    background-color: #8e44ad;
}

/* Loading indicator enhancements */
.loading-message {
    text-align: center;
    padding: 15px 0;
}

.loading-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #1a73e8;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

.loading-steps {
    margin-top: 15px;
    text-align: left;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.loading-step {
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 4px;
    color: #666;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.loading-step.current {
    background-color: #e8f4f8;
    color: #1a73e8;
    opacity: 1;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Career Insights tab styles */
#insights {
    background-color: #f8f9fa;
}

.insights-welcome {
    text-align: center;
    padding: 40px 20px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.insights-content {
    max-width: 900px;
    margin: 0 auto;
}

.insights-job-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
}

.insights-job-header h3 {
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.insights-job-header p {
    color: var(--light-text);
    font-size: 0.9rem;
}

.insights-section {
    margin-bottom: 25px;
}

.insights-card {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 20px;
}

.insights-section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--secondary-color);
    padding-bottom: 8px;
    border-bottom: 1px solid #eaeaea;
}

/* Skills Match Analysis */
.skills-match-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skills-match-overview {
    display: flex;
    justify-content: center;
}

.skills-match-meter {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #f3f4f6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 8px solid;
    position: relative;
    margin-bottom: 10px;
}

.skills-match-value {
    font-size: 36px;
    font-weight: bold;
}

.skills-match-label {
    font-size: 14px;
    color: var(--light-text);
}

.skills-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.matching-skills, .missing-skills {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 15px;
}

.matching-skills h5, .missing-skills h5 {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.matching-skills ul, .missing-skills ul {
    padding-left: 20px;
    margin: 0;
}

.matching-skills li, .missing-skills li {
    margin-bottom: 5px;
    font-size: 14px;
}

.empty-list-message {
    color: var(--light-text);
    font-style: italic;
}

/* Learning Recommendations */
.learning-recommendation {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
}

.learning-recommendation:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recommendation-icon {
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e3f2fd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #1976d2;
}

.recommendation-content h5 {
    margin: 0;
    margin-bottom: 5px;
}

.recommendation-content p {
    margin: 0;
    font-size: 14px;
    color: var(--light-text);
}

.empty-recommendations, .empty-highlights {
    color: var(--light-text);
    font-style: italic;
    text-align: center;
    padding: 20px 0;
}

/* Experience Highlights */
.experience-highlight {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
}

.experience-highlight:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.experience-highlight-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.experience-highlight-title {
    font-weight: 600;
    font-size: 15px;
    margin: 0;
}

.experience-highlight-relevance {
    font-size: 13px;
    color: #fff;
    background-color: #3498db;
    padding: 2px 8px;
    border-radius: 10px;
}

.experience-highlight-company {
    font-size: 13px;
    color: var(--light-text);
    margin-bottom: 8px;
}

.experience-highlight-points {
    margin: 0;
    padding-left: 20px;
}

.experience-highlight-points li {
    font-size: 14px;
    margin-bottom: 5px;
}

/* Insights Actions */
.insights-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.insights-actions button {
    padding: 10px 20px;
}

/* Match percentage colors */
.match-poor {
    border-color: #e74c3c !important;
}

.match-fair {
    border-color: #f39c12 !important;
}

.match-good {
    border-color: #3498db !important;
}

.match-excellent {
    border-color: #2ecc71 !important;
}

/* Profile tab improvements */
#profile .form-group {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

#profile .form-group:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

#profile .form-label {
    color: #2c3e50;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
}

#profile textarea {
    font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    resize: vertical;
    background-color: white;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
    transition: border-color 0.2s, box-shadow 0.2s;
}

#profile textarea:focus {
    border-color: #3498db;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08), 0 0 0 3px rgba(52, 152, 219, 0.2);
}

#profile .form-info {
    background-color: #e8f4fa;
    border-left: 3px solid #3498db;
    padding: 10px 12px;
    margin-top: 12px;
    margin-bottom: 15px;
    border-radius: 0 4px 4px 0;
    font-size: 0.9rem;
    color: #2c3e50;
}

#profile button {
    margin-top: 5px;
}

/* JSON input styling */
#profile .json-input-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}

#profile #cv-json {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    background-color: #f5f5f5;
}

/* Export/Import section */
#profile .export-import-section {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 18px;
    margin-top: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

#profile .export-import-section h3 {
    margin-top: 0;
    color: #2c3e50;
}

/* Job selector improvements */
.insights-job-selector {
    margin-bottom: 20px;
    background-color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.insights-job-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
}

.insights-job-selector select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Learning plan button */
.learning-actions {
    margin-top: 15px;
    text-align: center;
}

#create-learning-plan {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #4c4c9d;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

#create-learning-plan:hover {
    background-color: #3d3d7d;
}

.perplexity-icon {
    margin-right: 8px;
}

/* Cumulative skills analysis */
.skills-tracker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.most-requested-skills,
.skill-gap-summary {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 15px;
}

.most-requested-skills h5,
.skill-gap-summary h5 {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eaeaea;
}

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

.skill-name {
    font-weight: 500;
}

.skill-frequency {
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.empty-analysis {
    color: var(--light-text);
    font-style: italic;
    text-align: center;
    padding: 20px 0;
}

.cumulative-learning-actions {
    display: flex;
    justify-content: center;
    margin-top: 25px;
    width: 100%;
}

/* Make the button itself more prominent */
#create-cumulative-learning-plan {
    padding: 10px 20px;
    font-weight: 600;
    background-color: #4c4c9d;
}

#create-cumulative-learning-plan:hover {
    background-color: #3d3d7d;
}

.create-plan-button-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 20px 0;
}

#create-career-plan-btn {
    background-color: #4c4c9d;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

#create-career-plan-btn:hover {
    background-color: #3d3d7d;
}

/* Auth Status Section */
.auth-status-section,
.subscription-section {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 18px;
    margin-top: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.auth-status-section h3,
.subscription-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.1rem;
}

#auth-status p,
#subscription-status p {
    margin-bottom: 10px;
    color: #555;
}

#auth-status button {
    margin-top: 10px;
}

#last-sync-time {
    color: #27ae60;
    font-weight: 500;
}

/* Sync status in header */
#sync-status-text {
    color: #27ae60;
    font-weight: 500;
}

/* Sign-in required content */
.sign-in-required {
    text-align: center;
    padding: 60px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.sign-in-required h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.sign-in-required p {
    color: #7f8c8d;
    margin-bottom: 15px;
    line-height: 1.6;
}

.sign-in-required button {
    margin: 10px;
}

/* Pro Feature UI Styles */
/* TEMPORARILY HIDDEN: All pro badges hidden - features now free */
/*
.pro-badge {
    display: inline-block;
    font-size: 0.6em;
    margin-left: 6px;
    color: white;
    background-color: var(--accent-color);
    padding: 2px 6px;
    border-radius: 3px;
    vertical-align: middle; 
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.5px;
}
*/

.pro-badge {
    display: none !important;
}

.pro-badge.hidden {
    display: none !important;
}

/* Styling for disabled pro features */
button.disabled-pro-feature, /* Renamed from disabled-premium */
.tab-button.disabled-pro-feature { /* Renamed from disabled-premium */
    opacity: 0.60; /* Slightly more visible than default disabled often is */
    cursor: not-allowed !important;
    /* background-color: #e9ecef !important; /* Lighter grey for disabled */
    /* color: #adb5bd !important; */
    /* border-color: #ced4da !important; */
}

/* Ensure pro badge is visible even if parent is styled as disabled */
.disabled-pro-feature .pro-badge {
    opacity: 1; 
}

/* Ensure the Apply tab's Gemini buttons show their badges correctly by default */
#generate-cv-gemini .pro-badge,
#generate-cover-letter-gemini .pro-badge {
    display: inline; 
}

.job-actions-group h4 .pro-badge { /* For badges next to titles like "Auto Generation (Gemini) PRO" */
    font-size: 0.7em; 
    vertical-align: baseline; /* Align better with h4 text */
}

/* Ensure hidden class works universally */
.hidden {
    display: none !important; /* */
}

/* Adjust form-select for status dropdown if needed */
.job-status-select.form-select { /* This style might not be needed if you reverted the class in app.js */
    padding: 5px 8px; 
    font-size: 0.85rem; /* */
    height: auto; /* */
    line-height: 1.4; /* */
}
.job-status-select { /* Style for the original class if .form-select was removed */
    padding: 5px 8px; 
    font-size: 0.85rem;
    height: auto;
    line-height: 1.4;
}


.view-details-btn.default-button {
    padding: 5px 10px; 
    font-size: 0.8rem; /* */
}

/* CV Upload Section specific styles */
.cv-upload-section .form-info {
    margin-bottom: 10px; /* Add some space below the info text */
}

#cv-file-input {
    padding: 0.5rem; /* Adjust padding for file input */
    border: 1px solid #ddd;
    border-radius: 4px;
    width: auto; /* Allow button to sit beside or below nicely */
    max-width: 100%;
}

#cv-upload-ui-container button {
    vertical-align: middle; /* Align button nicely if input is inline */
}

.cv-upload-section[data-pro-feature].disabled-pro-feature #cv-upload-ui-container {
    display: none; /* Hide the upload UI if feature is disabled */
}
.cv-upload-section[data-pro-feature].disabled-pro-feature #cv-upload-signin-message {
    display: block !important; /* Show sign-in message when feature is disabled and user not signed in */
}

/* Ensure the pro badge for the section label itself is handled by existing .pro-badge styles */
.cv-upload-section .form-label .pro-badge {
    font-size: 0.7em;
    vertical-align: super; /* Adjust alignment if needed */
}

/* Profile Tab Subscription Section - REFINED STYLES V2 */
.subscription-section {
    margin-top: 2rem;
    padding: 30px 25px; /* Increased top/bottom padding */
    border-top: 1px solid var(--medium-gray, #ddd);
    background-color: #f8f9fa; /* Slightly off-white for the section */
    border-radius: 10px; /* Softer radius */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* Softer general shadow */
}

.subscription-section h3 { /* "Subscription" title */
    margin-top: 0;
    margin-bottom: 25px;
    color: var(--secondary-color, #2c3e50);
    font-size: 1.4rem; /* Title prominence */
    font-weight: 600;
    text-align: center; /* Center the "Subscription" and "Upgrade to Pro" titles */
}

#subscription-status-details {
    text-align: center; /* Center current plan status */
    margin-bottom: 20px;
}

#subscription-status-details p {
    margin-bottom: 0.5rem; /* Tighter spacing for status details */
    color: var(--text-color, #333);
    font-size: 1rem; /* Slightly larger status text */
}
#subscription-status-details strong {
    color: var(--primary-color, #3498db);
    font-weight: 600;
}

.plan-message { /* For expired/cancelling messages */
    font-weight: 500;
    color: var(--primary-dark, #2980b9);
    margin: 15px auto; /* Centered message block */
    padding: 12px 15px;
    background-color: #e9f5fe; /* Lighter, softer blue */
    border-left: 4px solid var(--primary-color, #3498db);
    border-radius: 6px;
    font-size: 0.9rem;
    max-width: 600px; /* Constrain width of message */
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.plan-message:empty {
    display: none;
}

#subscription-options {
    margin-top: 2.5rem; /* More space before upgrade options */
}

#subscription-options h4 { /* "Upgrade to Pro:" */
    font-size: 1.3rem;
    color: var(--secondary-color, #2c3e50);
    margin-bottom: 2rem; /* More space */
    font-weight: 600;
    text-align: center;
}

.plan-card-container {
    display: flex;
    gap: 30px; /* More space between cards */
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center; /* Center cards if they don't fill the row */
}

.plan-card {
    border: 1px solid #e7eaf0; /* Lighter border */
    border-radius: 12px; /* More rounded corners */
    padding: 0; /* Padding will be handled by inner elements */
    flex: 1 1 300px;
    min-width: 280px;
    max-width: 360px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07); /* More defined shadow */
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; /* Keep for positioning child elements like the ribbon */
}

.plan-card:hover {
    transform: translateY(-6px) scale(1.01); /* More engaging hover */
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Optional HTML Change Suggested: Wrap header content in a div */
.plan-card-header { /* Create this div in your HTML */
    padding: 25px 25px 20px 25px;
    text-align: center;
    /* background-color: #fdfdfd; */ /* Optional subtle header background */
    /* border-bottom: 1px solid #f0f0f0; */ /* Optional separator */
}

.plan-card h5 { /* Plan name */
    color: var(--primary-color, #3498db);
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.6rem; /* Larger, more prominent title */
    font-weight: 600; /* Changed from 600 to 700 for more boldness */
}

.plan-price {
    font-size: 2.5rem; /* Larger price */
    font-weight: 700;
    color: var(--secondary-color, #2c3e50);
    margin-bottom: 2px; /* Tighter with interval */
    line-height: 1.1;
}

.plan-interval {
    font-size: 0.9rem;
    font-weight: 500; /* Slightly bolder */
    color: var(--light-text, #777); /* Darker light-text */
    display: block;
}

.plan-card-body { /* Create this div in your HTML to wrap description and features list */
    padding: 0px 25px 25px 25px; /* Consistent padding */
    flex-grow: 1; /* Allows button to be pushed down */
    display: flex;
    flex-direction: column;
}

.plan-card .plan-description-intro { /* New class for the intro P if you separate it */
    font-size: 0.95rem;
    color: var(--text-color, #555); /* Slightly softer text */
    margin-bottom: 1.5rem; /* Space before feature list */
    line-height: 1.6; /* Better readability */
    text-align: center; /* Center the descriptive paragraph */
}

.plan-card .plan-features-list { /* New class for the UL if you separate it */
    list-style-type: none !important; /* Ensure no dots */
    padding-left: 0; /* Will control alignment via margin or text-align on parent */
    margin: 0 auto 1.5rem auto; /* Center the list block, provide bottom margin */
    /* display: table;  Alternative for centering if needed */
    width: fit-content; /* Allow the list to size to its content, helps with centering */
    max-width: 100%; /* Ensure it doesn't overflow card */
    text-align: left; /* Text inside li will be left-aligned */
    flex-grow: 1; /* Takes up available space in plan-card-body */
}

.plan-card .plan-features-list li {
    margin-bottom: 12px; /* More space between items */
    font-size: 0.9rem;
    color: #333;
    position: relative;
    padding-left: 28px; /* Space for the checkmark */
    line-height: 1.5; /* Improved line height for list items */
}

.plan-card .plan-features-list li::before {
    content: '✓';
    color: var(--success-color, #27ae60);
    font-weight: 700; /* Bolder checkmark */
    font-size: 1.15em; /* Slightly larger checkmark */
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%); /* Perfect vertical alignment for checkmark */
}

.plan-card-footer { /* Create this div in your HTML to wrap the button */
    padding: 0 25px 25px 25px;
    margin-top: auto; /* Pushes footer to the bottom */
}

.subscribe-button {
    width: 100%;
    padding: 12px 20px; /* Generous padding */
    margin-top: 0; /* margin-top:auto handled by plan-card-footer */
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.8px; /* More spacing */
    border-radius: 8px; /* Softer button radius */
    transition: background-color 0.2s ease, transform 0.1s ease;
}
.subscribe-button:active {
    transform: scale(0.98); /* Click feedback */
}


#manage-subscription-options {
    margin-top: 2rem;
    text-align: center; /* Center manage button if it's alone */
}

#manage-subscription-options button {
    padding: 12px 25px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
}

/* Yearly Plan Highlight - More pronounced */
.plan-card[data-plan-identifier="yearly"] {
    border: 2px solid var(--accent-color, #9b59b6);
    box-shadow: 0 8px 25px rgba(155, 89, 182, 0.15); /* Distinct shadow for highlighted plan */
    position: relative; /* Already set, but good for clarity */
}

/* Optional: Ribbon for yearly plan */
.plan-card[data-plan-identifier="yearly"] .plan-card-header::before { /* Attach to header */
    content: "BEST VALUE";
    display: block;
    position: absolute;
    top: -15px; /* Adjust to sit nicely above the card header */
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color, #9b59b6);
    color: white;
    padding: 6px 18px; /* More prominent padding */
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 20px; /* Pill shape */
    z-index: 2; /* Ensure it's above card content */
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Career Goals Selection Section */
.career-goals-section {
    margin-bottom: 30px;
}

.career-goals-section h3 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.career-goals-info {
    margin-bottom: 20px;
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.5;
}

.career-goals-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.career-goal-option {
    position: relative;
}

.career-goal-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.career-goal-card {
    display: flex;
    align-items: center;
    background-color: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0;
}

.career-goal-card:hover {
    border-color: #3498db;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.15);
}

.career-goal-option input[type="radio"]:checked + .career-goal-card {
    border-color: #3498db;
    background-color: #f8fafe;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

.career-goal-icon {
    font-size: 2rem;
    margin-right: 16px;
    opacity: 0.8;
}

.career-goal-content {
    flex: 1;
}

.career-goal-content h4 {
    margin: 0 0 4px 0;
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
}

.career-goal-content p {
    margin: 0;
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.4;
}

.career-goal-features {
    background-color: #e8f4f8;
    border: 1px solid #b3d9e8;
    border-radius: 8px;
    padding: 20px;
    margin-top: 16px;
    display: none;
}

.career-goal-features.show {
    display: block;
}

.features-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.features-icon {
    font-size: 1.2rem;
    margin-right: 8px;
}

.features-title {
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
}

.features-description {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 16px 0;
}

.features-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.feature-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feature-btn.primary {
    background-color: #3498db;
    color: white;
}

.feature-btn.primary:hover {
    background-color: #2980b9;
}

.feature-btn.secondary {
    background-color: #95a5a6;
    color: white;
}

.feature-btn.secondary:hover {
    background-color: #7f8c8d;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .career-goal-card {
        padding: 14px 16px;
    }
    
    .career-goal-icon {
        font-size: 1.5rem;
        margin-right: 12px;
    }
    
    .features-buttons {
        flex-direction: column;
    }
    
    .feature-btn {
        width: 100%;
    }
}

/* Professional Profiling Section Styles */
.profiling-section {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary-color);
}

.profiling-section h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-size: 1.3rem;
    font-weight: 600;
}

.profiling-info {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    padding: 15px;
    background-color: #e8f4f8;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

/* Existing Profile Status */
.existing-profile-status {
    margin-bottom: 25px;
}

.profile-status-card {
    background-color: #e8f5e8;
    border: 1px solid #c3e6c3;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.status-header h4 {
    margin: 0 0 5px 0;
    color: var(--success-color);
    font-size: 1.1rem;
}

.profile-date {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.profile-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Profiling Form */
.profiling-form {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

/* Radio Button Styling */
.profiling-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.profiling-radio-option {
    display: flex;
    align-items: flex-start;
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.profiling-radio-option:hover {
    border-color: var(--primary-color);
    background-color: #f0f8ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.15);
}

.profiling-radio-option input[type="radio"] {
    margin-right: 15px;
    margin-top: 2px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
}

.profiling-radio-option input[type="radio"]:checked {
    accent-color: var(--primary-color);
}

.profiling-radio-option:has(input:checked) {
    border-color: var(--primary-color);
    background-color: #e8f4f8;
    box-shadow: 0 2px 12px rgba(52, 152, 219, 0.2);
}

.radio-label {
    flex: 1;
    color: var(--text-color);
    font-weight: 500;
    line-height: 1.5;
    cursor: pointer;
    margin: 0;
    display: block;
}

.profiling-radio-option:has(input:checked) .radio-label {
    color: var(--primary-color);
    font-weight: 600;
}

/* Profiling Actions */
.profiling-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.profiling-actions .or-separator {
    color: var(--light-text);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px;
    background-color: white;
    border-radius: 20px;
    border: 1px solid #e0e0e0;
}

.profiling-actions button {
    min-width: 250px;
    padding: 12px 20px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.profiling-actions .gemini-button {
    background: linear-gradient(135deg, #1a73e8 0%, #4285f4 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.profiling-actions .gemini-button:hover {
    background: linear-gradient(135deg, #1558c4 0%, #3367d6 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 115, 232, 0.4);
}

.profiling-actions .claude-button {
    background-color: #9b59b6;
    color: white;
    border: none;
}

.profiling-actions .claude-button:hover {
    background-color: #8e44ad;
    transform: translateY(-1px);
}

/* Profile Results */
.profile-results {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    margin-top: 20px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.results-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.results-header h4 {
    margin: 0 0 8px 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.results-date {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.profile-content {
    line-height: 1.6;
}

.profile-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.profile-section h5 {
    margin: 0 0 15px 0;
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.profile-section p {
    margin-bottom: 12px;
    color: var(--text-color);
}

.profile-section ul {
    margin: 10px 0;
    padding-left: 20px;
}

.profile-section li {
    margin-bottom: 8px;
    color: var(--text-color);
}

.personality-traits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.trait-item {
    background-color: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.trait-item h6 {
    margin: 0 0 8px 0;
    color: var(--primary-color);
    font-weight: 600;
}

.trait-item p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.skill-category {
    background-color: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.skill-category h6 {
    margin: 0 0 10px 0;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.skill-tag {
    background-color: #e8f4f8;
    color: var(--primary-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.role-recommendations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.role-card {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.role-card h6 {
    margin: 0 0 8px 0;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.role-match {
    display: inline-block;
    background-color: var(--success-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.role-card p {
    margin: 8px 0;
    font-size: 0.9rem;
}

.profile-actions-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    flex-wrap: wrap;
}

.profile-actions-footer button {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
}

/* Loading States */
.profiling-loading {
    text-align: center;
    padding: 40px 20px;
}

.profiling-loading .loading-spinner {
    margin: 20px auto;
}

.profiling-loading-steps {
    margin-top: 20px;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.profiling-loading-step {
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 4px;
    color: #666;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.profiling-loading-step.current {
    background-color: #e8f4f8;
    color: var(--primary-color);
    opacity: 1;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profiling-section {
        padding: 20px;
        margin: 20px 0;
    }
    
    .profiling-form {
        padding: 20px;
    }
    
    .profiling-actions {
        padding: 20px;
    }
    
    .profiling-actions button {
        min-width: 100%;
    }
    
    .profile-status-card {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-actions {
        justify-content: center;
        width: 100%;
    }
    
    .personality-traits,
    .skills-grid,
    .role-recommendations {
        grid-template-columns: 1fr;
    }
    
    .profile-actions-footer {
        flex-direction: column;
        align-items: center;
    }
    
    .profile-actions-footer button {
        width: 100%;
        max-width: 300px;
    }
}

/* Admin Dashboard Styles */

/* Admin Tab - Hidden by default */
#admin-tab-button {
    display: none !important;
}

#admin-tab-button.show-admin {
    display: flex !important;
}

/* Admin Overview Section */
.admin-overview {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.admin-stat-card {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.admin-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.admin-stat-label {
    font-size: 0.9rem;
    color: var(--light-text);
    font-weight: 500;
}

/* Admin Controls Section */
.admin-controls {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.admin-search-section {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.admin-search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

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

.admin-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.admin-filter-group {
    display: flex;
    flex-direction: column;
}

.admin-filter-group label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.admin-filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    background-color: white;
}

.admin-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Profiles Section */
.admin-profiles-section {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.admin-section-header h3 {
    margin: 0;
    color: var(--secondary-color);
    font-size: 1.3rem;
}

#filtered-count {
    color: var(--light-text);
    font-weight: normal;
    font-size: 0.9rem;
}

.admin-view-toggle {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.view-toggle-btn {
    padding: 8px 16px;
    background-color: white;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.view-toggle-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.view-toggle-btn:hover:not(.active) {
    background-color: #f5f5f5;
}

/* Loading and Empty States */
.admin-loading,
.admin-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--light-text);
}

.admin-loading .loading-spinner {
    margin: 0 auto 15px auto;
}

/* Profiles Grid Layout */
.admin-profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.admin-profiles-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Profile Cards */
.admin-profile-card {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.admin-profile-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.profile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.profile-basic-info h4 {
    margin: 0 0 5px 0;
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.profile-timestamp {
    font-size: 0.8rem;
    color: var(--light-text);
}

.profile-actions {
    display: flex;
    gap: 5px;
}

.profile-action-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-action-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Profile Card Content Sections */
.profile-personality-preview {
    margin-bottom: 15px;
}

.profile-personality-preview h5 {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.personality-traits-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.personality-trait-tag {
    background-color: #e8f4f8;
    color: var(--primary-color);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.profile-skills-preview {
    margin-bottom: 15px;
}

.profile-skills-preview h5 {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.skills-preview-list {
    font-size: 0.85rem;
    color: var(--text-color);
    line-height: 1.4;
}

.profile-roles-preview h5 {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.role-recommendations-mini {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.role-recommendation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.role-title-mini {
    font-weight: 500;
    color: var(--text-color);
}

.role-match-mini {
    background-color: var(--success-color);
    color: white;
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* List View Specific Styles */
.admin-profile-card.list-view {
    display: flex;
    align-items: center;
    padding: 15px 20px;
}

.admin-profile-card.list-view .profile-card-header {
    flex: 0 0 250px;
    margin-bottom: 0;
}

.admin-profile-card.list-view .profile-personality-preview,
.admin-profile-card.list-view .profile-skills-preview,
.admin-profile-card.list-view .profile-roles-preview {
    flex: 1;
    margin-bottom: 0;
    margin-right: 20px;
}

.admin-profile-card.list-view .profile-actions {
    flex: 0 0 auto;
}

/* Pagination */
.admin-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.pagination-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background-color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#admin-page-info {
    font-size: 0.9rem;
    color: var(--light-text);
}

/* Profile Detail Modal */
.admin-profile-modal {
    max-width: 900px;
    max-height: 80vh;
    overflow-y: auto;
}

.profile-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.profile-detail-basic h2 {
    margin: 0 0 8px 0;
    color: var(--secondary-color);
}

.profile-detail-timestamp {
    color: var(--light-text);
    font-size: 0.9rem;
}

.profile-detail-actions {
    display: flex;
    gap: 10px;
}

.profile-detail-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.profile-detail-section h3 {
    margin: 0 0 15px 0;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.personality-traits-detail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.trait-detail-item {
    background-color: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.trait-detail-item h4 {
    margin: 0 0 8px 0;
    color: var(--primary-color);
    font-size: 1rem;
}

.trait-level {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.trait-description {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.4;
}

.skills-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.skill-category-detail {
    background-color: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.skill-category-detail h4 {
    margin: 0 0 10px 0;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.skill-items-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.skill-item-detail {
    background-color: #e8f4f8;
    color: var(--primary-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.role-recommendations-detail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.role-detail-card {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.role-detail-card h4 {
    margin: 0 0 8px 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.role-match-detail {
    display: inline-block;
    background-color: var(--success-color);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.role-detail-card p {
    margin: 8px 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Responsive Design for Admin Dashboard */
@media (max-width: 768px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-search-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .admin-filters {
        grid-template-columns: 1fr;
    }
    
    .admin-actions {
        flex-direction: column;
    }
    
    .admin-profiles-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .admin-profile-card.list-view {
        flex-direction: column;
        align-items: stretch;
    }
    
    .admin-profile-card.list-view .profile-card-header {
        flex: none;
        margin-bottom: 15px;
    }
    
    .personality-traits-detail,
    .skills-detail-grid,
    .role-recommendations-detail {
        grid-template-columns: 1fr;
    }
    
    .admin-pagination {
        flex-direction: column;
        gap: 10px;
    }
}

/* Professional Profile Sync Status Styles */
.profile-sync-status {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 10px 15px;
    margin-bottom: 15px;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
}

.profile-sync-status:empty {
    display: none !important;
}

/* Animation for syncing status */
.profile-sync-status span[style*="color: #f39c12"] {
    animation: pulse 1.5s ease-in-out infinite alternate;
}

@keyframes pulse {
    from {
        opacity: 0.7;
    }
    to {
        opacity: 1;
    }
}

/* Enhanced profile section styles */
.profile-section {
    margin-bottom: 25px;
    padding: 20px;
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.profile-section h5 {
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-size: 18px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
}

/* Personality traits display */
.personality-traits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.trait-item {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid var(--accent-color);
}

.trait-item h6 {
    margin-bottom: 8px;
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 600;
}

/* Skills grid display */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.skill-category {
    background-color: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
}

.skill-category h6 {
    margin-bottom: 8px;
    color: var(--secondary-color);
    font-size: 13px;
    font-weight: 600;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.skill-tag {
    background-color: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

/* Role recommendations display */
.role-recommendations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.role-card {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    position: relative;
}

.role-card h6 {
    margin-bottom: 8px;
    color: var(--secondary-color);
    font-size: 16px;
    font-weight: 600;
}

.role-match {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .personality-traits,
    .skills-grid,
    .role-recommendations {
        grid-template-columns: 1fr;
    }
    
    .profile-sync-status {
        font-size: 13px;
        padding: 8px 12px;
    }
}