* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1rem;
    opacity: 0.95;
}

.input-section {
    padding: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #333;
}

textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.3s;
    min-height: 300px;
}

textarea:focus {
    outline: none;
    border-color: #667eea;
}

textarea.job-description {
    min-height: 150px;
}

.char-count {
    text-align: right;
    color: #666;
    font-size: 0.9rem;
    margin-top: 5px;
}

.btn {
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 100%;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-icon {
    font-size: 1.2rem;
}

.loading {
    display: none;
    text-align: center;
    padding: 60px 40px;
}

.loading.active {
    display: block;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.loading h2 {
    color: #333;
    margin-bottom: 10px;
}

.loading p {
    color: #666;
    margin-bottom: 5px;
}

.loading-time {
    font-size: 0.9rem;
    color: #999;
}

.results-section {
    display: none;
    padding: 40px;
}

.results-section.active {
    display: block;
}

.section {
    margin-bottom: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
}

.section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.section-description {
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

.score-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.score-display {
    font-size: 5rem;
    font-weight: bold;
    text-align: center;
    margin: 30px 0;
}

.score-display.good {
    color: #28a745;
}

.score-display.medium {
    color: #ffc107;
}

.score-display.bad {
    color: #dc3545;
}

.score-description {
    text-align: center;
    font-size: 1.2rem;
    color: #555;
    padding: 15px;
    background: white;
    border-radius: 8px;
}

.issue {
    padding: 20px;
    margin: 15px 0;
    border-left: 5px solid;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.issue.high {
    border-color: #dc3545;
}

.issue.medium {
    border-color: #ffc107;
}

.issue.low {
    border-color: #17a2b8;
}

.issue strong {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 1.1rem;
}

.issue p {
    color: #666;
    line-height: 1.6;
}

.strengths-list ul {
    list-style: none;
    padding: 0;
}

.strengths-list li {
    padding: 15px;
    margin: 10px 0;
    background: white;
    border-left: 5px solid #28a745;
    border-radius: 8px;
    color: #333;
}

.improvement-item {
    padding: 20px;
    margin: 15px 0;
    background: white;
    border-radius: 8px;
    border-left: 5px solid #667eea;
}

.improvement-item strong {
    display: block;
    color: #333;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.improvement-item .priority {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.priority.high {
    background: #dc3545;
    color: white;
}

.priority.medium {
    background: #ffc107;
    color: #333;
}

.priority.low {
    background: #17a2b8;
    color: white;
}

.improvement-item p {
    color: #666;
    line-height: 1.6;
}

.bullet-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 8px;
}

.bullet-box {
    padding: 20px;
    border-radius: 8px;
    border: 2px solid;
}

.bullet-box.before {
    border-color: #dc3545;
    background: #fff5f5;
}

.bullet-box.after {
    border-color: #28a745;
    background: #f0fff4;
}

.bullet-box strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.bullet-box p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 10px;
}

.bullet-box small {
    color: #666;
    font-style: italic;
}

.job-match-section {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.match-score {
    font-size: 4rem;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
    color: #333;
}

.match-detail {
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 8px;
}

.match-detail strong {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-size: 1.1rem;
}

.match-detail p {
    color: #666;
    line-height: 1.6;
}

.match-detail ul {
    list-style: none;
    padding-left: 0;
}

.match-detail li {
    padding: 8px 0;
    color: #333;
}

.actions {
    text-align: center;
    margin-top: 40px;
}

footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 25px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }

    .bullet-compare {
        grid-template-columns: 1fr;
    }

    .score-display {
        font-size: 3.5rem;
    }
}