@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

:root {
    --primary-color: #0052cc;
    --primary-light: #f4f8ff;
    --secondary-color: #333;
    --background-color: #f7f9fc;
    --border-color: #dfe1e6;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --success-color: #00875a;
    --warning-color: #ff991f;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--secondary-color);
    display: flex;
    flex-direction: column; /* Changed for footer alignment */
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.app-container {
    width: 100%;
    max-width: 800px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.page {
    display: none;
    padding: 40px;
    animation: fadeIn 0.5s ease-in-out;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

p {
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

textarea, input[type="text"], input[type="number"], input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    margin-bottom: 20px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

textarea:focus, input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.2);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

button {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

button:hover {
    background-color: #0041a3;
    transform: translateY(-2px);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
}

.api-key-note {
    font-size: 0.8rem;
    text-align: center;
    color: #777;
    margin-top: 20px;
}

/* --- NEW STYLES for Disclaimer Box --- */
.disclaimer-box {
    background-color: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    text-align: left;
}

.disclaimer-box p {
    margin-bottom: 10px;
    color: #594300;
    font-size: 0.9rem;
}

.disclaimer-box p:last-child {
    margin-bottom: 0;
}

.disclaimer-box a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.disclaimer-box a:hover {
    text-decoration: underline;
}
/* --- END of new styles --- */


/* Progress Bar */
.progress-bar-container {
    width: 100%;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin: 15px 0;
}

#progress-bar {
    width: 10%;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
    transition: width 0.3s ease-in-out;
}

#progress-text {
    text-align: center;
    font-weight: 500;
    color: #777;
}

/* Report Page */
.toggle-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.toggle-buttons button {
    width: auto;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
}

.toggle-buttons button.toggle-active {
    background-color: var(--primary-light);
    border-color: var(--primary-color);
    font-weight: bold;
}

.score-summary {
    text-align: center;
    margin: 30px 0;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    font-size: 2rem;
    font-weight: 700;
    border: 5px solid var(--primary-color);
}

.analysis-section, .growth-section {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 5px solid var(--border-color);
}

.analysis-section p, .growth-section p {
    margin-bottom: 10px;
}

/* Growth Hub */
#candidate-strengths {
    list-style-type: '✅ ';
    padding-left: 20px;
}

#candidate-strengths li {
    margin-bottom: 10px;
    font-weight: 500;
}

.growth-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}
.growth-card h4 {
    color: var(--warning-color);
    margin-bottom: 10px;
}
.growth-card ul {
    list-style-position: inside;
    padding-left: 10px;
}

/* Footer Styling */
footer {
    width: 100%;
    max-width: 800px;
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    gap: 15px;
}

.footer-content p {
    color: #888;
    font-size: 0.9rem;
    margin: 0; /* Remove default margin */
}

.footer-content a img {
    transition: transform 0.2s ease-in-out;
}

.footer-content a:hover img {
    transform: scale(1.05); /* Slight zoom effect on hover */
}