* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 40px 20px;
    color: #1e293b;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: #ffffff;
    padding: 60px 40px;
    text-align: center;
}

.header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 20px;
    margin-bottom: 12px;
    opacity: 0.95;
    font-weight: 500;
}

.description {
    font-size: 16px;
    opacity: 0.85;
    max-width: 700px;
    margin: 0 auto;
}

.input-section {
    padding: 60px 40px;
    background: #f8fafc;
}

.input-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.input-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.input-card h2 {
    font-size: 20px;
    color: #1e293b;
    margin-bottom: 20px;
    font-weight: 600;
}

.file-upload-wrapper {
    position: relative;
}

#resumeFile {
    display: none;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    color: #64748b;
}

.file-upload-label:hover {
    background: #e2e8f0;
    border-color: #3b82f6;
}

.upload-icon {
    font-size: 28px;
}

#jobDescription {
    width: 100%;
    min-height: 200px;
    padding: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
    background: #ffffff;
}

#jobDescription:focus {
    outline: none;
    border-color: #3b82f6;
}

.resume-preview {
    margin-top: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 14px;
    color: #475569;
    line-height: 1.8;
    max-height: 300px;
    overflow-y: auto;
}

.primary-btn {
    display: block;
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.primary-btn:active {
    transform: translateY(0);
}

.results-section {
    padding: 60px 40px;
    background: #ffffff;
}

.results-section.hidden {
    display: none;
}

.results-title {
    font-size: 32px;
    color: #1e293b;
    margin-bottom: 32px;
    text-align: center;
    font-weight: 700;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.result-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s;
}

.result-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.1);
}

.result-card.full-width {
    grid-column: 1 / -1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h3 {
    font-size: 20px;
    color: #1e293b;
    font-weight: 600;
}

.copy-btn {
    padding: 8px 16px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.copy-btn:hover {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}

.score-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #ffffff;
    border: none;
}

.score-card .card-header h3 {
    color: #ffffff;
}

.score-display {
    text-align: center;
    margin: 24px 0;
}

.score-number {
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.score-label {
    font-size: 18px;
    opacity: 0.8;
}

.score-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 20px;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #3b82f6 100%);
    border-radius: 6px;
    transition: width 1s ease-out;
    width: 0%;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    padding: 8px 16px;
    background: #eff6ff;
    color: #1e40af;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #bfdbfe;
}

.content-area {
    font-size: 15px;
    line-height: 1.8;
    color: #334155;
    white-space: pre-line;
}

.content-area strong {
    color: #1e293b;
    display: block;
    margin-top: 16px;
    margin-bottom: 8px;
    font-size: 16px;
}

.content-area ul {
    list-style: none;
    padding-left: 0;
}

.content-area li {
    padding-left: 24px;
    position: relative;
    margin-bottom: 12px;
}

.content-area li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: 700;
}

@media (max-width: 768px) {
    body {
        padding: 20px 10px;
    }

    .header {
        padding: 40px 24px;
    }

    .header h1 {
        font-size: 32px;
    }

    .subtitle {
        font-size: 18px;
    }

    .input-section,
    .results-section {
        padding: 40px 24px;
    }

    .input-card {
        padding: 24px;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .result-card.full-width {
        grid-column: 1;
    }

    .score-number {
        font-size: 56px;
    }
}
