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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: #667eea;
    font-size: 2.5em;
    margin-bottom: 10px;
}

header p {
    color: #666;
    font-size: 1.1em;
}

header .subtitle {
    color: #764ba2;
    font-size: 1.2em;
    font-weight: 600;
    margin: 5px 0;
}

header .tech {
    color: #888;
    font-size: 0.95em;
    font-style: italic;
}

.modules-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.module {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.module:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.upload-section h3,
.input-section h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.loading-section {
    text-align: center;
    padding: 30px;
    margin: 20px 0;
}

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

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

.upload-section {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    border: 2px dashed #667eea;
    border-radius: 10px;
    background: #f8f9ff;
}

.upload-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #667eea;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    transition: 0.3s;
}

.upload-btn:hover {
    background: #5568d3;
    transform: translateY(-2px);
}

#fileName {
    display: block;
    margin-top: 15px;
    color: #666;
    font-style: italic;
}

.input-section {
    margin: 25px 0;
}

.input-section label {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-weight: bold;
    font-size: 1.1em;
}

.input-section textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    resize: vertical;
}

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

.analyze-btn {
    width: 100%;
    padding: 15px;
    background: #764ba2;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.analyze-btn:hover {
    background: #5f3a82;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(118, 75, 162, 0.3);
}

.result-section {
    margin-top: 30px;
    padding: 25px;
    background: #f8f9ff;
    border-radius: 10px;
    border-left: 5px solid #667eea;
}

.result-section h2 {
    color: #667eea;
    margin-bottom: 20px;
    text-align: center;
}

#resultContent {
    line-height: 1.8;
    color: #333;
}

.info-row {
    padding: 10px;
    margin: 8px 0;
    background: white;
    border-radius: 5px;
}

.info-label {
    font-weight: bold;
    color: #667eea;
}

.match-percentage {
    font-size: 2em;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 10px;
}

.status {
    text-align: center;
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
    font-size: 1.3em;
    font-weight: bold;
}

.status.high {
    background: #d4edda;
    color: #155724;
}

.status.medium {
    background: #fff3cd;
    color: #856404;
}

.status.low {
    background: #f8d7da;
    color: #721c24;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.skill-tag {
    background: #667eea;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
}

footer {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9ff;
    border-radius: 10px;
    text-align: center;
    font-size: 0.9em;
    color: #666;
    line-height: 1.8;
}

footer strong {
    color: #667eea;
}
