/* ============================================================
   app-redesign.css — app.html SaaS App Shell 스타일
   사이드바 + 탑바 + 콘텐츠 영역 레이아웃
   style.css 이후 로드하여 덮어씀. 다른 페이지에 영향 없음.
   ============================================================ */

/* --- Sidebar Navigation Items --- */
body.app-redesign .sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 10px;
    color: #94a3b8;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.15s;
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: transparent;
}

body.app-redesign .sidebar-item:hover {
    background: rgba(255,255,255,0.06);
    color: #e2e8f0;
}

body.app-redesign .sidebar-item.active {
    background: rgba(37,99,235,0.15);
    color: #60a5fa;
    font-weight: 600;
}

body.app-redesign .sidebar-item.active svg {
    color: #60a5fa;
}

/* --- Sidebar What's New button (override style.css .btn-whats-new) --- */
body.app-redesign .sidebar-item.btn-whats-new {
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 13.5px;
    padding: 9px 12px;
    border-radius: 10px;
}
body.app-redesign .sidebar-item.btn-whats-new:hover {
    background: rgba(255,255,255,0.06);
    color: #e2e8f0;
}

/* --- Sidebar Action Buttons (logout, account delete) --- */
body.app-redesign .sidebar-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    padding: 7px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.15s;
}

/* --- Step Labels --- */
body.app-redesign .app-step-label {
    margin-bottom: 16px;
}

body.app-redesign .app-step-num {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-weight: 700;
    width: 28px;
    height: 28px;
    font-size: 13px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}

/* --- Sample Try Banner --- */
body.app-redesign .sample-try-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%);
    border: 1px solid rgba(37,99,235,0.25);
    border-radius: 14px;
    padding: 18px 22px;
    color: #e2e8f0;
    margin-bottom: 24px;
}

body.app-redesign .sample-try-icon {
    background: rgba(37,99,235,0.2);
    border-radius: 10px;
}

body.app-redesign .sample-try-icon svg {
    color: #60a5fa;
}

body.app-redesign .sample-try-text strong {
    color: #ffffff;
    font-size: 14px;
}

body.app-redesign .sample-try-text span {
    color: #94a3b8;
    font-size: 13px;
}

body.app-redesign .sample-try-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #e2e8f0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 16px;
    transition: all 0.2s;
}

body.app-redesign .sample-try-btn:hover {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
}

body.app-redesign .sample-try-btn.sample-fill-btn {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

body.app-redesign .sample-try-btn.sample-fill-btn:hover {
    background: #1d4ed8;
}

/* --- Input Cards --- */
body.app-redesign .input-card {
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    overflow: hidden;
    transition: all 0.2s;
    background: #ffffff;
}

body.app-redesign .input-card:hover {
    border-color: #bcd1ff;
    box-shadow: 0 2px 12px rgba(37,99,235,0.06), 0 1px 3px rgba(0,0,0,0.04);
}

body.app-redesign .input-card-header {
    background: #f9fafb;
    border-bottom: 1px solid #f3f4f6;
    padding: 14px 18px;
}

body.app-redesign .input-card-icon {
    border-radius: 8px;
    width: 32px;
    height: 32px;
}

body.app-redesign .input-card-icon.jd {
    background: linear-gradient(135deg, #eef4ff, #dbeafe);
    color: #2563eb;
}

body.app-redesign .input-card-icon.candidate {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    color: #16a34a;
}

body.app-redesign .input-card-header h3 {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

body.app-redesign .required-badge {
    background: #eef4ff;
    color: #2563eb;
    font-weight: 600;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 5px;
}

body.app-redesign .input-card-body {
    padding: 18px;
}

body.app-redesign .input-card-body textarea {
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    font-size: 13.5px;
    line-height: 1.7;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #ffffff;
}

body.app-redesign .input-card-body textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
    outline: none;
}

/* --- Tabs --- */
body.app-redesign .tabs {
    display: flex;
    gap: 2px;
    padding: 3px;
    background: #f3f4f6;
    border-radius: 10px;
    border: none;
    margin-bottom: 14px;
}

body.app-redesign .tab {
    flex: 1;
    text-align: center;
    padding: 8px 14px;
    border: none;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    background: transparent;
    cursor: pointer;
    transition: all 0.15s;
}

body.app-redesign .tab:first-child { border-radius: 7px; }
body.app-redesign .tab:last-child { border-radius: 7px; }
body.app-redesign .tab:not(:last-child) { border-right: none; }

body.app-redesign .tab:hover {
    color: #374151;
    background: rgba(255,255,255,0.5);
}

body.app-redesign .tab.active {
    background: #ffffff;
    color: #2563eb;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    border: none;
}

/* --- File Upload --- */
body.app-redesign .file-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 28px 20px;
    background: #f9fafb;
    transition: all 0.2s;
}

body.app-redesign .file-upload-area:hover {
    border-color: #2563eb;
    background: #eef4ff;
}

body.app-redesign .file-upload-area.has-file {
    border-color: #22c55e;
    background: #f0fdf4;
    border-style: solid;
}

body.app-redesign .file-upload-text {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

body.app-redesign .file-upload-hint {
    font-size: 12px;
    color: #9ca3af;
}

/* --- Hidden JD Card --- */
body.app-redesign .hidden-jd-card {
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

body.app-redesign .hidden-jd-header {
    padding: 14px 18px;
    background: #f9fafb;
}

body.app-redesign .hidden-jd-icon {
    border-radius: 8px;
}

body.app-redesign .pro-badge-input {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
}

/* --- Analyze Button Area --- */
body.app-redesign .batch-start-area {
    text-align: center;
    padding: 16px 0 8px;
}

body.app-redesign .btn-analyze {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    border: none;
    padding: 14px 44px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(37,99,235,0.25), 0 1px 3px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.app-redesign .btn-analyze:hover:not(:disabled) {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    box-shadow: 0 6px 20px rgba(37,99,235,0.35), 0 2px 6px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

body.app-redesign .btn-analyze:disabled {
    background: #9ca3af;
    box-shadow: none;
    cursor: not-allowed;
}

body.app-redesign .batch-start-hint {
    color: #9ca3af;
    font-size: 12px;
    margin-top: 10px;
}

body.app-redesign .ai-data-notice {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 11px;
    color: #6b7280;
    margin-top: 14px;
    display: inline-flex;
    gap: 6px;
    align-items: flex-start;
    max-width: 560px;
    text-align: left;
}

/* --- Error Message --- */
body.app-redesign .error-message {
    border-radius: 10px;
    border-left: 4px solid #ef4444;
    background: #fef2f2;
    padding: 12px 16px;
}

/* --- Loading Overlay --- */
body.app-redesign .loading-card {
    border-radius: 18px;
    max-width: 480px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.15), 0 8px 20px rgba(0,0,0,0.1);
    padding: 36px 32px;
}

body.app-redesign .loading-header span {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
}

body.app-redesign .loading-timer {
    font-size: 30px;
    font-weight: 800;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.app-redesign .loading-progress-bar {
    border-radius: 6px;
    height: 6px;
    background: #f3f4f6;
}

body.app-redesign .loading-progress-fill {
    border-radius: 6px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
}

body.app-redesign .loading-percent {
    font-weight: 700;
    color: #2563eb;
    font-size: 13px;
}

body.app-redesign .step-indicator {
    border-radius: 8px;
}

body.app-redesign .step-indicator.waiting {
    background: #f3f4f6;
    border-color: #e5e7eb;
}

body.app-redesign .step-indicator.running {
    background: #eef4ff;
    border-color: #2563eb;
}

body.app-redesign .step-indicator.completed {
    background: #f0fdf4;
    border-color: #22c55e;
}

body.app-redesign .loading-step-item {
    border-radius: 10px;
    padding: 10px 12px;
}

body.app-redesign .loading-step-item.active {
    background: #eef4ff;
    border-color: #bcd1ff;
}

body.app-redesign .loading-step-item.done {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

body.app-redesign .step-title {
    font-weight: 600;
    font-size: 13px;
}

body.app-redesign .loading-tip {
    color: #6b7280;
    font-size: 12px;
    font-style: italic;
}

/* --- LinkedIn Guide --- */
body.app-redesign .linkedin-guide-header {
    background: #f0f9ff;
    border-radius: 10px;
    padding: 14px;
}

body.app-redesign .linkedin-step-num {
    background: #0A66C2;
    color: #fff;
    border-radius: 6px;
    font-weight: 700;
}

/* --- Input Section Grid Override (for style.css compatibility) --- */
body.app-redesign .input-section {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

/* --- Patch Banner inside SaaS layout --- */
body.app-redesign .patch-banner {
    border-radius: 0;
}

/* --- Mobile Responsive --- */
@media (max-width: 1023px) {
    body.app-redesign .sample-try-banner {
        padding: 14px 16px;
    }

    body.app-redesign .btn-analyze {
        padding: 12px 32px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    body.app-redesign .input-card-header {
        padding: 12px 14px;
    }

    body.app-redesign .input-card-body {
        padding: 14px;
    }

    body.app-redesign .input-card-body textarea {
        padding: 12px;
        font-size: 13px;
    }
}
