/**
 * Industry Templates Styles
 * SAP Fiori-inspired design for industry template pages
 */

/* ============================================
   MAIN GRID PAGE STYLES
   ============================================ */

.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.industry-card {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.industry-card:hover {
    border-color: #0070f2;
    box-shadow: 0 4px 16px rgba(0, 112, 242, 0.15);
    transform: translateY(-2px);
}

.industry-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.industry-icon {
    font-size: 2rem;
    line-height: 1;
}

.industry-icon-lg {
    font-size: 2.5rem;
    margin-right: 0.5rem;
}

.industry-name {
    font-size: 1.25rem;
    font-weight: 500;
    color: #32363a;
    margin: 0;
}

.industry-description {
    color: #6a6d70;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.industry-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    padding: 0.75rem 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0070f2;
}

.stat-label {
    font-size: 0.75rem;
    color: #6a6d70;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.industry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: #515456;
}

.meta-icon {
    font-size: 0.9rem;
}

.industry-card-footer {
    margin-top: auto;
}

.btn-arrow {
    margin-left: 0.5rem;
    transition: transform 0.2s;
}

.industry-card:hover .btn-arrow {
    transform: translateX(4px);
}

/* Steps Grid (How It Works) */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.step {
    text-align: center;
    padding: 1rem;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #0070f2;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 auto 0.75rem;
}

.step h4 {
    font-size: 1rem;
    font-weight: 500;
    color: #32363a;
    margin-bottom: 0.5rem;
}

.step p {
    font-size: 0.85rem;
    color: #6a6d70;
    margin: 0;
}

/* ============================================
   DETAIL PAGE STYLES
   ============================================ */

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

.header-left {
    flex: 1;
}

.header-right {
    display: flex;
    align-items: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0070f2;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.back-link:hover {
    text-decoration: underline;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Overview Grid */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.overview-item {
    display: flex;
    flex-direction: column;
}

.overview-label {
    font-size: 0.75rem;
    color: #6a6d70;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.overview-value {
    font-size: 1.25rem;
    font-weight: 500;
    color: #32363a;
}

/* Job Families Grid */
.job-families-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.job-family-card {
    background: #f7f7f7;
    border-radius: 6px;
    padding: 1rem;
}

.family-name {
    font-size: 1rem;
    font-weight: 500;
    color: #32363a;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0070f2;
}

.job-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.job-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e5e5;
}

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

.job-title {
    font-size: 0.9rem;
    color: #32363a;
}

.job-salary {
    font-size: 0.8rem;
    color: #6a6d70;
}

/* Archetypes Grid */
.archetypes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.archetype-card {
    background: #f7f7f7;
    border-radius: 6px;
    padding: 1rem;
    border-left: 3px solid #0070f2;
}

.archetype-name {
    font-size: 1rem;
    font-weight: 500;
    color: #32363a;
    margin-bottom: 0.25rem;
}

.archetype-experience {
    font-size: 0.85rem;
    color: #6a6d70;
    margin-bottom: 0.75rem;
}

.archetype-weight {
    position: relative;
    margin-bottom: 0.75rem;
}

.weight-bar {
    height: 6px;
    background: #0070f2;
    border-radius: 3px;
    margin-bottom: 0.25rem;
}

.weight-label {
    font-size: 0.75rem;
    color: #6a6d70;
}

.archetype-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.skill-tag {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 0.15rem 0.5rem;
    font-size: 0.7rem;
    color: #515456;
}

.skill-tag.more {
    background: #e8f3ff;
    border-color: #0070f2;
    color: #0070f2;
}

/* Pipeline Chart */
.pipeline-chart {
    max-width: 600px;
}

.pipeline-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.stage-name {
    width: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #32363a;
}

.stage-bar-container {
    flex: 1;
    height: 24px;
    background: #f0f0f0;
    border-radius: 4px;
    margin: 0 0.75rem;
    overflow: hidden;
}

.stage-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.stage-new { background: #0070f2; }
.stage-lead { background: #107e3e; }
.stage-in_review { background: #e9730c; }
.stage-interview { background: #8b5cf6; }
.stage-offered { background: #0d9488; }
.stage-hired { background: #059669; }

.stage-percentage {
    width: 40px;
    text-align: right;
    font-size: 0.85rem;
    font-weight: 500;
    color: #32363a;
}

/* Certifications */
.certifications-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cert-badge {
    background: #e8f3ff;
    color: #0070f2;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ============================================
   EXISTING DATA CHECK STYLES
   ============================================ */

.existing-data-panel,
.no-data-panel,
.checking-data-panel {
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.checking-data-panel {
    background: #f7f7f7;
    text-align: center;
}

.checking-data-panel p {
    color: #6a6d70;
    margin-top: 0.5rem;
}

.existing-data-panel {
    background: #fff8e1;
    border: 1px solid #ffc107;
    border-left: 4px solid #ffc107;
}

.existing-data-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.existing-data-header h4 {
    margin: 0;
    color: #856404;
}

.warning-icon {
    font-size: 1.5rem;
}

.existing-data-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.stat-box {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #e5e5e5;
}

.stat-box .stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 600;
    color: #0070f2;
}

.stat-box .stat-label {
    font-size: 0.8rem;
    color: #6a6d70;
    text-transform: uppercase;
}

.existing-data-note {
    color: #856404;
    font-weight: 500;
    margin-bottom: 1rem;
}

.existing-data-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.no-data-panel {
    background: #e1f4eb;
    border: 1px solid #107e3e;
    border-left: 4px solid #107e3e;
}

.no-data-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.no-data-header h4 {
    margin: 0;
    color: #107e3e;
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #107e3e;
    color: white;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: bold;
}

.no-data-panel p {
    color: #0d6831;
    margin: 0;
}

/* ============================================
   GENERATE FORM STYLES
   ============================================ */

.card-description {
    color: #6a6d70;
    margin-bottom: 1.5rem;
}

.generate-form {
    max-width: 600px;
}

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

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

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

.slider {
    flex: 1;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: #e5e5e5;
    border-radius: 4px;
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #0070f2;
    border-radius: 50%;
    cursor: pointer;
}

.slider-value {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    color: #0070f2;
    font-size: 1.25rem;
}

.form-help {
    font-size: 0.8rem;
    color: #6a6d70;
    margin-top: 0.5rem;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    accent-color: #0070f2;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e5e5;
}

/* Simulation Panel */
.simulation-panel {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #e8f3ff;
    border: 2px solid #0070f2;
    border-radius: 8px;
}

.simulation-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #cce0ff;
}

.simulation-header h3 {
    color: #0070f2;
    margin-bottom: 0.25rem;
}

.simulation-note {
    color: #0054a6;
    font-size: 0.9rem;
    margin: 0;
}

.simulation-summary {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.summary-stat {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #cce0ff;
    min-width: 120px;
}

.summary-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: #0070f2;
}

.summary-label {
    font-size: 0.75rem;
    color: #6a6d70;
    text-transform: uppercase;
}

.simulation-section {
    background: white;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.simulation-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #32363a;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.simulation-jobs,
.simulation-candidates {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.simulation-job-card,
.simulation-candidate-card {
    background: #f7f7f7;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 0.75rem 1rem;
}

.simulation-job-card .job-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.simulation-job-card .job-title {
    font-weight: 500;
    color: #32363a;
}

.simulation-job-card .job-salary {
    color: #107e3e;
    font-weight: 500;
}

.simulation-job-card .job-meta {
    font-size: 0.8rem;
    color: #6a6d70;
}

.simulation-job-card .job-description {
    font-size: 0.8rem;
    color: #515456;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.simulation-candidate-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.candidate-info {
    display: flex;
    flex-direction: column;
}

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

.candidate-email {
    font-size: 0.8rem;
    color: #6a6d70;
}

.more-items {
    text-align: center;
    color: #6a6d70;
    font-style: italic;
    margin: 0.5rem 0 0 0;
}

.no-data {
    color: #6a6d70;
    font-style: italic;
}

.pipeline-preview {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pipeline-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background: #f7f7f7;
    border-radius: 4px;
}

.pipeline-item .stage-name {
    font-weight: 500;
}

.pipeline-item .stage-count {
    color: #6a6d70;
}

.simulation-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #cce0ff;
    flex-wrap: wrap;
}

.btn-success {
    background: #107e3e;
    color: white;
}

.btn-success:hover {
    background: #0d6831;
}

/* Preview Panel */
.preview-panel,
.progress-panel,
.results-panel {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f7f7f7;
    border-radius: 8px;
}

.preview-panel h3,
.progress-panel h3,
.results-panel h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #32363a;
}

.preview-section h4 {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6a6d70;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.preview-jobs,
.preview-candidates {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.preview-job-card,
.preview-candidate-card {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 0.75rem 1rem;
}

.preview-job-card .job-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.preview-job-card .job-title {
    font-weight: 500;
}

.preview-job-card .job-meta {
    font-size: 0.8rem;
    color: #6a6d70;
}

.preview-candidate-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Progress Bar */
.progress-bar-container {
    height: 8px;
    background: #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-bar {
    height: 100%;
    background: #0070f2;
    border-radius: 4px;
    transition: width 0.3s ease;
}

#progressStatus {
    font-size: 0.9rem;
    color: #6a6d70;
}

/* Results Panel */
.results-summary {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.result-stat {
    text-align: center;
}

.result-value {
    display: block;
    font-size: 2rem;
    font-weight: 600;
    color: #0070f2;
}

.result-label {
    font-size: 0.8rem;
    color: #6a6d70;
    text-transform: uppercase;
}

.results-message {
    color: #107e3e;
    font-weight: 500;
    margin-bottom: 1rem;
}

.result-deleted .result-value {
    color: #e9730c;
}

.result-error .result-value {
    color: #bb0000;
}

.error-message {
    background: #ffebee;
    color: #bb0000;
    padding: 1rem;
    border-radius: 4px;
    border-left: 3px solid #bb0000;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    .industry-grid {
        grid-template-columns: 1fr;
    }

    .detail-header {
        flex-direction: column;
    }

    .header-right {
        width: 100%;
    }

    .header-right .btn {
        width: 100%;
    }

    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-actions {
        flex-direction: column;
    }

    .results-summary {
        flex-wrap: wrap;
    }
}
