/* Premium Theme Renewal Styles (Inspired by Metronic) */
:root {
    --kt-primary: #009EF7;
    --kt-primary-light: #f1faff;
    --kt-success: #50CD89;
    --kt-info: #7239EA;
    --kt-warning: #FFC700;
    --kt-danger: #F1416C;
    --kt-text-dark: #181C32;
    --kt-text-gray: #3F4254;
    --kt-text-muted: #A1A5B7;
    --kt-bg-body: #f5f8fa;
    --kt-card-bg: #ffffff;
    --kt-border-color: #eff2f5;
    --kt-border-dashed: #e1e3ea;
    --kt-radius: 0.75rem;
}

body {
    background-color: var(--kt-bg-body);
    color: var(--kt-text-gray);
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
}

.detail-container {
    padding: 30px;
    max-width: 100%;
    /* Wider width */
    margin: 0;
}

/* Header Actions */
.detail-header-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 25px;
}

.btn-detail {
    padding: 10px 20px;
    border-radius: var(--kt-radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #d1d8e0;
    /* Added distinct border */
    transition: all 0.2s;
    background-color: #ffffff;
    color: var(--kt-text-gray);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    /* Slightly tighter shadow */
}

.btn-detail:hover {
    background-color: #f1f4f6;
}

.btn-detail.primary {
    background-color: var(--kt-primary);
    color: #ffffff;
    border-color: var(--kt-primary);
    /* Primary border color */
}

.btn-detail.primary:hover {
    background-color: #0086d1;
}

/* Card Section */
.section {
    background: var(--kt-card-bg);
    border: 1px solid #d1d8e0;
    /* More prominent border */
    border-radius: var(--kt-radius);
    margin-bottom: 30px;
    box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.02);
    /* More grounded shadow */
}

.section-header {
    padding: 18px 25px;
    border-bottom: 1px solid var(--kt-border-color);
    background-color: #f8fafc;
    /* More distinct background */
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-left: 5px solid var(--kt-primary);
    /* Stronger blue accent */
}

.section-header h3 {
    font-size: 16px;
    font-weight: 600;
    /* Reduced from 700 */
    color: var(--kt-text-dark);
    margin: 0;
    padding-left: 0;
}

.section-header h3::before {
    display: none;
    /* Remove previous yellow accent */
}

/* Info Table */
.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table th {
    width: 15%;
    background-color: transparent;
    padding: 14px 25px;
    text-align: left;
    font-size: 13px;
    color: #7e8299;
    font-weight: 500;
    border-bottom: 1px solid var(--kt-border-color);
}

.info-table td {
    padding: 14px 25px;
    font-size: 13px;
    color: var(--kt-text-dark);
    font-weight: 500;
    border-bottom: 1px solid var(--kt-border-color);
}

.info-table tr:last-child th,
.info-table tr:last-child td {
    border-bottom: none;
}

/* Sub Sections */
.sub-section-title {
    background-color: #fcfcfd;
    padding: 10px 25px;
    font-size: 13px;
    font-weight: 600;
    /* Reduced from 700 */
    color: var(--kt-text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--kt-border-color);
    margin-top: 0;
}

.sub-section-title i {
    font-size: 14px;
    color: var(--kt-primary);
}

.sub-section-content {
    padding: 10px 0;
}

/* Form Controls */
.detail-select {
    appearance: none;
    background-color: #f5f8fa;
    border: 1px solid #f5f8fa;
    color: var(--kt-text-gray);
    border-radius: 0.5rem;
    padding: 8px 30px 8px 12px;
    font-size: 13px;
    font-weight: 500;
    outline: none;
    transition: all 0.2s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A1A5B7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

.detail-select:focus {
    background-color: #eff2f5;
    border-color: #eff2f5;
}

/* JD Content Box */
.jd-content-box {
    padding: 15px 25px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--kt-text-gray);
    white-space: pre-line;
    background-color: #ffffff;
}

/* Badges (Status Labels) */
.badge-premium {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 0.475rem;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-light-primary {
    background-color: var(--kt-primary-light);
    color: var(--kt-primary);
}

/* Footer Actions */
.footer-actions {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    padding-bottom: 50px;
}

/* Breadcrumb Styling */
.header {
    background: transparent;
    padding: 0 30px;
    height: 60px;
    display: flex;
    align-items: center;
}

.breadcrumb {
    font-size: 13px;
    color: var(--kt-text-muted);
}

.breadcrumb span {
    color: var(--kt-text-dark);
    font-weight: 600;
}

/* 🤖 AI Matching Analysis Report Visuals */
.ai-matching-report {
    margin-top: 30px;
    margin-bottom: 50px;
    display: none;
}

.analysis-loading {
    text-align: center;
    padding: 50px;
    background: #0f172a;
    border-radius: 12px;
    border: 1px solid #1e293b;
    overflow: hidden;
    position: relative;
}

.analysis-loading h4 {
    color: #f8fafc !important;
}

.scanning-ray {
    height: 2px;
    background: #38bdf8;
    position: absolute;
    left: 0;
    width: 100%;
    top: 0;
    box-shadow: 0 0 15px #38bdf8;
    animation: move-scan 2s infinite linear;
    pointer-events: none;
}

@keyframes move-scan {
    0% {
        top: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.match-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 25px;
}

.candidate-match-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    border: 1px solid #e2e8f0;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    cursor: pointer;
}

.candidate-match-card:hover {
    transform: translateY(-8px);
    border-color: #38bdf8;
    box-shadow: 0 20px 25px -5px rgba(56, 189, 248, 0.15);
}

.candidate-match-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #3b82f6;
    opacity: 0.3;
}

.match-score-visual {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(#38bdf8 calc(var(--val) * 1%), #f1f5f9 0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.1);
}

.score-circle::after {
    content: '';
    position: absolute;
    width: 84%;
    height: 84%;
    background: white;
    border-radius: 50%;
}

.score-value {
    position: relative;
    z-index: 10;
    font-size: 16px;
    font-weight: 900;
    color: #1e293b;
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.match-score-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    filter: blur(8px);
    background: conic-gradient(#38bdf8 calc(var(--val) * 1%), transparent 0);
    opacity: 0.4;
}

.candidate-meta {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.candidate-meta::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #94a3b8;
}

.candidate-name {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px;
}

.match-comment {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 15px;
    position: relative;
    padding-left: 15px;
}

.match-comment::before {
    content: '"';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 24px;
    color: #cbd5e1;
    font-family: serif;
    line-height: 1;
}

.ai-matching-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    margin-top: 5px;
    background: #f0f7ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
}