* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.container {
  flex: 1;
}

body {
    margin: 10px;
    background: #FEFCE8;
    color: #1A202C;
    line-height: 1.6;
    font-size: 18px;
}

.container {
    max-width: 1000px;
    margin: auto;
    padding: 30px;
}

.main-header {
    background: #674737;
    color: white;
    padding: 18px 20px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

.main-header h1 {
    margin: 0;
    font-size: 34px;
    font-weight: 700;
}

.main-header p {
    opacity: 0.9;
    font-size: 16px;
    margin-top: 8px;
}

.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 30px auto;
    width: 100%;
}

.tab-button {
    background: white;
    border: 2px solid #F6E05E;
    padding: 12px 30px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    color: #4A5568;
    transition: 0.3s ease;
    font-size: 18px;
    text-align: center;
}

.tab-button:hover {
    background: #FFFBEB;
}

.tab-button.active {
    background: #D69E2E;
    color: white;
    border-color: #B7791F;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInUp 0.35s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    justify-content: center;
}

.search-form input {
    flex: 1;
    min-width: 280px;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #CBD5E0;
    background: white;
    font-size: 18px;
}

.search-form button {
    padding: 14px 28px;
    border-radius: 10px;
    border: none;
    background: #D69E2E;
    color: white;
    font-weight: bold;
    cursor: pointer;
    font-size: 18px;
    transition: 0.3s;
}

.search-form button:hover {
    background: #B7791F;
}

.job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.job-card {
    background: #ffffff;
    padding: 22px;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: 0.25s ease;
}

.job-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.job-title {
    font-size: 22px;
    font-weight: 700;
    color: #674737;
}

.job-company {
    font-size: 17px;
    padding-top: 6px;
    color: #4A5568;
    opacity: 0.9;
}

.job-location {
    font-size: 15px;
    padding-bottom: 14px;
    color: #718096;
    opacity: 0.8;
}

.job-description {
    color: #4A5568;
    opacity: 0.9;
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.6;
}

.job-meta {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.apply-button {
    padding: 12px;
    background: #D69E2E;
    color: white;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    transition: 0.3s ease;
    text-decoration: none;
}

.apply-button:hover {
    background: #B7791F;
}

.match-btn {
    padding: 12px;
    background: #FFFBEB;
    border: 1px solid #F6E05E;
    border-radius: 10px;
    color: #674737;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.match-btn:hover {
    background: #F6E05E;
}

.skill-box {
    margin-top: 12px;
    background: #FFFBEB;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #F6E05E;
    font-size: 16px;
}

.skill-box strong {
    color: #674737;
}

.skill-list.have {
    font-weight: 600;
    color: #38A169;
}

.skill-list.missing {
    font-weight: 600;
    color: #F56565;
}

textarea#resumeText {
    width: 100%;
    min-height: 200px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #CBD5E0;
    background: white;
    font-size: 18px;
    margin-bottom: 20px;
}

#analyzeCvButton {
    padding: 14px 28px;
    background: #674737;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    font-size: 18px;
    transition: 0.3s ease;
}

#analyzeCvButton:hover {
    background: #D69E2E;
}

.suggestion-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid #D69E2E;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.analysis-results h2 {
    color: #674737;
    margin-bottom: 15px;
}

.analysis-good {
    color: #38A169;
    font-weight: bold;
    text-align: center;
    padding: 25px;
    background: #F0FFF4;
    border-radius: 10px;
    border: 1px solid #9AE6B4;
}

.main-footer {
    margin-top: 50px;
    padding: 12px;
    background: #674737;
    color: white;
    text-align: center;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;

}

.main-footer a {
    color: #F6E05E;
    text-decoration: none;
    font-weight: 600;

}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    .container {
        padding: 15px;
    }
    .main-header h1 {
        font-size: 30px;
    }
    .job-title {
        font-size: 19px;
    }
    .job-description {
        font-size: 15px;
    }
    .tab-button {
        flex-grow: 1;
        font-size: 17px;
        padding: 12px 18px;
    }
    .search-form {
        flex-direction: column;
    }
    .search-form input, .search-form button {
        width: 100%;
        min-width: unset;
    }
}
