/* Reset and Base Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Arial, sans-serif; line-height: 1.6; color: #333; background: #f4f7fa; }
.container { max-width: 800px; margin: 0 auto; padding: 20px; }
/* Header */
.header { text-align: center; margin-bottom: 30px; }
.header h1 { color: #0056b3; font-size: 2.5em; margin-bottom: 10px; }
.header p { color: #666; font-size: 1.1em; }
/* Intro Content */
.intro-content { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); margin-bottom: 20px; }
.resume-prompt, .templates-section, .start-section { margin-bottom: 20px; }
h2 { color: #0056b3; margin-bottom: 10px; }
select, input[type="text"] { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 1em; }
.template-preview { display: none; color: #666; font-style: italic; margin-top: 10px; }
.start-btn, button { background: #ff9500; color: white; padding: 12px 24px; border: none; border-radius: 4px; cursor: pointer; font-size: 1em; transition: background 0.3s; }
.start-btn:hover, button:hover { background: #e68900; transform: translateY(-1px); } /* Subtle animation */
/* Manual Resume */
.manual-resume { background: #e9f1ff; padding: 15px; border-radius: 4px; text-align: center; }
.manual-resume input { margin: 0 10px 0 0; width: auto; max-width: 200px; }
.manual-resume button { margin-left: 10px; }
/* Step Content */
.step-content { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); margin-bottom: 20px; }
.section-info { margin-bottom: 15px; }
.section-info h2 { color: #0056b3; }
textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 1em; resize: vertical; }
textarea.valid { border-color: #28a745; }
.validation-section { margin: 15px 0; text-align: center; }
.validate-btn { margin: 0 10px; padding: 8px 16px; border: none; border-radius: 4px; cursor: pointer; }
.validate-btn.yes { background: #28a745; color: white; }
.validate-btn.no { background: #dc3545; color: white; }
.validate-btn:disabled { background: #ccc; cursor: not-allowed; }
.navigation { text-align: center; margin-top: 20px; }
.navigation button { margin: 0 10px; padding: 12px 24px; }
/* Progress */
.progress-section { margin: 20px 0; }
.progress-label { font-weight: bold; color: #666; margin-bottom: 5px; }
.progress-bar { background: #ddd; height: 10px; border-radius: 5px; overflow: hidden; margin: 20px 0; }
.progress-fill { background: #ff9500; height: 100%; transition: width 0.3s ease; }
/* Tips Panel (Always Visible, Fixed) */
.tips-panel { position: fixed; bottom: 20px; right: 20px; background: #0056b3; color: white; padding: 15px; border-radius: 8px; width: 300px; max-height: 300px; overflow-y: auto; box-shadow: 0 4px 8px rgba(0,0,0,0.2); z-index: 1000; }
.ai-prompt { background: #003d82; padding: 8px; border-radius: 4px; font-family: monospace; white-space: pre-wrap; margin: 10px 0; }
.copy-btn { background: #ff9500; color: white; border: none; padding: 5px 10px; border-radius: 4px; cursor: pointer; margin-top: 5px; }
/* Responsive Design */
@media (max-width: 600px) {
    .container { padding: 10px; }
    .header h1 { font-size: 2em; }
    .manual-resume input { display: block; margin: 10px auto; }
    .manual-resume button { display: block; margin: 10px auto; }
    .tips-panel { position: static; width: 100%; margin-top: 20px; }
    .navigation button { display: block; margin: 10px auto; }
}
/* Animation for Tips Panel Slide-In */
@keyframes slideIn { from { opacity: 0; transform: translateY(100px); } to { opacity: 1; transform: translateY(0); } }
.tips-panel { animation: slideIn 0.3s ease; } /* Apply on show */
/* Summary Page */
.summary-content { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); margin-bottom: 20px; }
#goal-details ul { list-style: none; }
#goal-details li { margin-bottom: 10px; padding: 10px; background: #f8f9fa; border-radius: 4px; }
.badge { background: #d4edda; border: 1px solid #c3e6cb; color: #155724; padding: 15px; border-radius: 8px; text-align: center; margin: 20px 0; }
.export-section { text-align: center; margin-top: 20px; }
.export-btn { background: #28a745; color: white; margin: 0 10px; padding: 12px 24px; border: none; border-radius: 4px; cursor: pointer; }
.export-btn:hover { background: #218838; }
.save-btn { background: #007bff; color: white; padding: 8px 16px; border: none; border-radius: 4px; cursor: pointer; margin-top: 10px; }
.save-btn:hover { background: #0056b3; }
.draft-id-message { background: #e9f1ff; padding: 10px; border-radius: 4px; margin-bottom: 20px; text-align: center; font-weight: bold; }
.home-btn { background: #6c757d; color: white; padding: 12px 24px; border: none; border-radius: 4px; cursor: pointer; }
.home-btn:hover { background: #5a6268; }

/* Index Page Specific Styles (Apply only when body has class="index-page") */
.index-page body {
    background: #f4f4f4;
}
.index-page header.main-header {
    background-color: #007BFF;
    color: white;
    padding: 5px;
    text-align: center;
}
.index-page header.main-header .logo {
    display: block;
    margin: 0 auto -10px;
    max-width: 150px;
    height: auto;
}
.index-page header.main-header h1 {
    margin: 0;
    font-size: 2.5em;
}
.index-page main {
    max-width: 1200px;
    margin: 10px auto;
    padding: 10px;
}
.index-page .intro {
    text-align: center;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}
.index-page .intro p {
    font-size: 1.2em;
    margin: 10px 0;
}
.index-page .intro h2 {
    color: #333;
}
.index-page .smart-section {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.index-page .smart-section h2 {
    grid-column: 1 / -1;
    text-align: center;
    color: #333;
    font-size: 2em;
    margin-bottom: 20px;
}
.index-page .smart-components {
    background-color: #E3F2FD;
    padding: 20px;
    border-radius: 8px;
}
.index-page .smart-letter {
    font-size: 3em;
    font-weight: bold;
    display: inline-block;
    width: 50px;
    text-align: center;
    margin-right: 10px;
}
.index-page .smart-s { color: #FF9800; }
.index-page .smart-m { color: #4CAF50; }
.index-page .smart-a { color: #2196F3; }
.index-page .smart-r { color: #F44336; }
.index-page .smart-t { color: #9C27B0; }
.index-page .smart-section .tips-panel {
    position: static;
    width: auto;
    max-height: none;
    overflow-y: visible;
    box-shadow: none;
    z-index: auto;
    background-color: #BBDEFB;
    padding: 20px;
    border-radius: 8px;
}
.index-page .smart-section .tips-header {
    background-color: #1976D2;
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    text-align: center;
}
.index-page .smart-section .general-tip {
    background-color: lightslategrey;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}
.index-page .smart-section .ai-prompt {
    /* background-color: lightslategrey; */
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    font-family: inherit;
    white-space: normal;
}
.index-page .smart-section .copy-prompt {
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    margin: 10px auto;
}
.index-page .app-flow {
    grid-column: 1 / -1;
    text-align: center;
    margin: 20px 0;
}
.index-page .flow-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}
.index-page .flow-box {
    background-color: #E0E0E0;
    padding: 10px 15px;
    border-radius: 5px;
    min-width: 60px;
    text-align: center;
}
.index-page .flow-diamond {
    background-color: #E0E0E0;
    padding: 10px;
    border-radius: 5px;
    transform: rotate(45deg);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.index-page .flow-diamond span {
    transform: rotate(-45deg);
}
.index-page .additional-features {
    grid-column: 1 / -1;
    background-color: #F3E5F5;
    padding: 20px;
    border-radius: 8px;
}
.index-page .additional-features ul {
    list-style-type: disc;
    padding-left: 20px;
}
.index-page .launch-info {
    text-align: center;
    background-color: #FFF3E0;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.index-page .launch-info h2 {
    color: #333;
}
.index-page .btn {
    background-color: #007BFF;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin-top: 20px;
    font-size: 1.1em;
}
.index-page .btn:hover {
    background-color: #0056b3;
}
.index-page footer {
    background-color: #007BFF;
    color: white;
    text-align: center;
    padding: 10px;
    position: fixed;
    width: 100%;
    bottom: 0;
}
/* Index Page Responsive */
@media (max-width: 768px) {
    .index-page .smart-section {
        grid-template-columns: 1fr;
    }
    .index-page .flow-diagram {
        flex-direction: column;
    }
}