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

:root {
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --secondary-color: #764ba2;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --dark-color: #2c3e50;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    min-height: 100vh;
    padding: 20px;
    padding-bottom: 80px;
}

/* Hero Banner */
.hero-banner {
    max-width: 900px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    padding: 30px;
    color: white;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.5s ease-out;
}

.hero-banner.hidden {
    display: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.hero-icon {
    font-size: 3rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.hero-text h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.hero-text p {
    opacity: 0.9;
    font-size: 1rem;
}

.hero-dismiss {
    margin-left: auto;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.5);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.hero-dismiss:hover {
    background: rgba(255,255,255,0.3);
    transform: translateX(5px);
}

.hero-features {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    opacity: 0.95;
}

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

/* Tab Navigation */
.tab-nav {
    max-width: 900px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    padding: 0 10px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    font-weight: 700;
    color: var(--dark-color);
    border-right: 1px solid var(--gray-200);
    margin-right: 10px;
}

.brand-icon {
    font-size: 1.5rem;
}

.brand-text {
    font-size: 1.1rem;
}

.nav-tabs {
    display: flex;
    flex: 1;
    gap: 5px;
}

.tab-btn {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: var(--radius-sm);
    margin: 8px 0;
}

.tab-btn:hover {
    background: var(--gray-100);
    color: var(--dark-color);
}

.tab-btn.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Section subtitle */
.section-subtitle {
    color: var(--gray-600);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Settings Page */
.settings-description {
    color: #666;
    margin-bottom: 20px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.settings-card {
    background: var(--gray-100);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--gray-200);
}

.settings-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.settings-card-header h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--dark-color);
}

.settings-icon {
    font-size: 1.3rem;
}

.settings-section {
    background: var(--gray-100);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--gray-200);
}

.settings-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.settings-section-header h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--dark-color);
}

.settings-section h3 {
    margin: 0 0 15px 0;
    color: var(--dark-color);
    font-size: 1rem;
}

.settings-info {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.privacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
}

.privacy-icon {
    font-size: 1.1rem;
}

.file-upload-area {
    border: 2px dashed var(--gray-400);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
    background: white;
}

.file-upload-area:hover,
.file-upload-area.drag-over {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

.upload-content {
    pointer-events: none;
}

.upload-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.upload-content p {
    margin: 5px 0;
    color: #555;
}

.upload-hint {
    font-size: 0.85rem;
    color: #888;
}

.link-btn {
    background: none;
    border: none;
    color: #3498db;
    cursor: pointer;
    text-decoration: underline;
    font-size: inherit;
    padding: 0;
    pointer-events: auto;
}

.file-status {
    margin-top: 10px;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    display: none;
}

.file-status.success {
    display: block;
    background: #d4edda;
    color: #155724;
}

.file-status.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.controls {
    max-width: 900px;
    margin: 0 auto 20px;
    padding: 25px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.controls h2 {
    margin-bottom: 10px;
    color: var(--dark-color);
    font-size: 1.4rem;
    font-weight: 700;
}

.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-pdf {
    background: #e74c3c;
    color: white;
}

.btn-pdf:hover {
    background: #c0392b;
}

.btn-docx {
    background: #3498db;
    color: white;
}

.btn-docx:hover {
    background: #2980b9;
}

.btn-rtf {
    background: #27ae60;
    color: white;
}

.btn-rtf:hover {
    background: #219a52;
}

.btn-generate {
    background: #9b59b6;
    color: white;
}

.btn-generate:hover {
    background: #8e44ad;
}

/* Cover Letter Form */
.cover-letter-form {
    margin-top: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group-btn {
    justify-content: flex-end;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.form-group input,
.form-group select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
}

.form-group input::placeholder {
    color: #aaa;
}

/* AI Section */
.ai-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.ai-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.ai-header h3 {
    color: white;
    margin: 0;
    font-size: 1.1rem;
}

.ai-provider-toggle {
    display: flex;
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
    overflow: hidden;
}

.provider-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.provider-btn:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}

.provider-btn.active {
    background: rgba(255,255,255,0.25);
    color: white;
}

.provider-config {
    background: rgba(0,0,0,0.15);
    border-radius: 6px;
    padding: 12px 15px;
    margin: 15px 0;
}

.config-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.config-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.config-group.flex-grow {
    flex: 1;
}

.config-group label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
}

.config-group input,
.config-group select {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    min-width: 150px;
}

.config-group select {
    cursor: pointer;
}

.btn-test {
    background: rgba(39, 174, 96, 0.8);
    white-space: nowrap;
}

.btn-test:hover {
    background: rgba(39, 174, 96, 1);
}

.connection-status {
    margin-top: 10px;
    font-size: 0.85rem;
    padding: 8px 12px;
    border-radius: 4px;
    display: none;
}

.connection-status.success {
    display: block;
    background: rgba(39, 174, 96, 0.3);
    color: #a8e6cf;
}

.connection-status.error {
    display: block;
    background: rgba(231, 76, 60, 0.3);
    color: #ffcccc;
}

.api-key-group {
    display: flex;
    gap: 8px;
}

.api-key-group input {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    width: 200px;
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.85rem;
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-small:hover {
    background: rgba(255,255,255,0.3);
}

.ai-section .form-group label {
    color: rgba(255,255,255,0.9);
}

.label-hint {
    font-weight: 400;
    font-size: 0.75rem;
    opacity: 0.7;
}

.url-input-row {
    display: flex;
    gap: 8px;
}

.url-input-row input {
    flex: 1;
    padding: 10px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
}

.btn-fetch {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    white-space: nowrap;
}

.btn-fetch:hover {
    background: rgba(255,255,255,0.3);
}

.btn-fetch:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ai-section textarea {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
}

.ai-actions {
    margin-top: 15px;
}

.btn-analyze {
    background: white;
    color: #667eea;
    font-weight: 700;
    width: 100%;
    justify-content: center;
}

.btn-analyze:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.btn-analyze:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.ai-analysis {
    background: rgba(255,255,255,0.95);
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
}

.ai-analysis h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 0.95rem;
}

.match-score {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.score-bar {
    flex: 1;
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.score-fill.high { background: #27ae60; }
.score-fill.medium { background: #f39c12; }
.score-fill.low { background: #e74c3c; }

.score-text {
    font-weight: 700;
    min-width: 45px;
}

.score-text.high { color: #27ae60; }
.score-text.medium { color: #f39c12; }
.score-text.low { color: #e74c3c; }

.match-warning {
    background: #fff3cd;
    color: #856404;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 12px;
    border-left: 4px solid #ffc107;
}

.match-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.match-column h5 {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin: 0 0 8px 0;
    text-transform: uppercase;
}

.match-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.match-column li {
    font-size: 0.85rem;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.match-column li.matched::before {
    content: "✓";
    color: #27ae60;
    font-weight: bold;
}

.match-column li.missing::before {
    content: "○";
    color: #e74c3c;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: #95a5a6;
    font-size: 0.85rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.divider span {
    padding: 0 15px;
}

/* Cover Letter Container */
.cover-letter-container {
    max-width: 850px;
    margin: 0 auto;
    background: #fff;
    padding: 60px 70px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.cover-letter-header {
    margin-bottom: 30px;
}

.cover-letter-date {
    color: #555;
    margin-bottom: 20px;
}

.cover-letter-recipient {
    margin-bottom: 20px;
    line-height: 1.5;
}

.cover-letter-greeting {
    font-weight: 600;
    margin-bottom: 20px;
}

.cover-letter-body p {
    margin-bottom: 16px;
    text-align: justify;
}

.cover-letter-highlights {
    margin: 20px 0;
    padding-left: 20px;
}

.cover-letter-highlights li {
    margin-bottom: 8px;
    color: #555;
}

.cover-letter-closing {
    margin-top: 30px;
}

.cover-letter-signature {
    margin-top: 40px;
}

.cover-letter-signature .regards {
    margin-bottom: 30px;
}

.cover-letter-signature .name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #2c3e50;
}

.cover-letter-signature .contact {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 5px;
}

.resume-container {
    max-width: 850px;
    margin: 0 auto;
    background: #fff;
    padding: 50px 60px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
}

/* Header Styles */
header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #2c3e50;
    margin-bottom: 20px;
}

header h1 {
    font-size: 2.4rem;
    color: #2c3e50;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

header .label {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 12px;
}

header .contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.95rem;
    color: #555;
}

header .contact-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Section Styles */
.section {
    margin-bottom: 20px;
}

.section h2 {
    font-size: 1.3rem;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid #bdc3c7;
    padding-bottom: 6px;
    margin-bottom: 12px;
    margin-top: 0;
}

/* Summary */
#summary p {
    font-size: 1rem;
    color: #555;
    text-align: justify;
}

/* Experience */
.job {
    margin-bottom: 18px;
}

.job:last-child {
    margin-bottom: 0;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.job-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
}

.job-company {
    font-size: 1rem;
    color: #3498db;
    font-weight: 600;
}

.job-meta {
    text-align: right;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.job-location {
    font-style: italic;
}

.job ul {
    list-style-type: none;
    padding-left: 0;
}

.job li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
    font-size: 0.95rem;
    color: #555;
}

.job li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #3498db;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.skill-category {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 3px solid #3498db;
}

.skill-category h3 {
    font-size: 0.95rem;
    color: #2c3e50;
    margin-bottom: 8px;
}

.skill-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.skill-keyword {
    background: #e8f4fc;
    color: #2980b9;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* Projects */
.project {
    margin-bottom: 18px;
}

.project:last-child {
    margin-bottom: 0;
}

.project-header {
    margin-bottom: 6px;
}

.project-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #2c3e50;
}

.project-link {
    color: #3498db;
    text-decoration: none;
    font-size: 0.9rem;
}

.project-link:hover {
    text-decoration: underline;
}

.project-description {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.project ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 8px;
}

.project li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 4px;
    font-size: 0.9rem;
    color: #555;
}

.project li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #3498db;
}

.project-tech {
    font-size: 0.85rem;
    color: #7f8c8d;
    font-style: italic;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: white;
        padding: 0;
    }

    .resume-container {
        box-shadow: none;
        padding: 20px 30px;
        max-width: 100%;
    }

    .section {
        margin-bottom: 15px;
    }

    .section h2 {
        margin-bottom: 10px;
        padding-bottom: 5px;
    }

    .job {
        margin-bottom: 15px;
        page-break-inside: avoid;
    }

    header {
        margin-bottom: 15px;
    }
}

/* Resume Builder */
.builder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.builder-header h2 {
    margin: 0;
}

.builder-header .button-group {
    flex-wrap: wrap;
}

.btn-small {
    padding: 8px 14px;
    font-size: 0.85rem;
}

.builder-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.builder-section h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header h3 {
    margin: 0;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.work-entry,
.skill-entry {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
}

.work-entry:last-child,
.skill-entry:last-child {
    margin-bottom: 0;
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 10px;
}

.entry-title {
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.entry-actions {
    display: flex;
    gap: 5px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon.btn-up,
.btn-icon.btn-down {
    background: #ecf0f1;
    color: #7f8c8d;
}

.btn-icon.btn-up:hover,
.btn-icon.btn-down:hover {
    background: #3498db;
    color: white;
}

.btn-icon.btn-delete {
    background: #fce4e4;
    color: #e74c3c;
}

.btn-icon.btn-delete:hover {
    background: #e74c3c;
    color: white;
}

.highlight-item {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.highlight-item input {
    flex: 1;
}

.highlight-item .btn-icon {
    flex-shrink: 0;
}

.add-highlight-btn {
    font-size: 0.85rem;
    padding: 6px 12px;
    margin-top: 5px;
}

.skill-keywords {
    margin-top: 10px;
}

.skill-keywords label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
    display: block;
}

.skill-keywords input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
}

.empty-state {
    text-align: center;
    padding: 30px;
    color: #888;
    font-style: italic;
}

.preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.preview-content {
    background: white;
    border-radius: 12px;
    max-width: 900px;
    max-height: 90vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.preview-header h3 {
    margin: 0;
}

.preview-body {
    overflow-y: auto;
    padding: 0;
    flex: 1;
}

.preview-body .resume-container {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Responsive */
@media (max-width: 600px) {
    .resume-container,
    .cover-letter-container {
        padding: 30px 25px;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .job-header {
        flex-direction: column;
    }

    .job-meta {
        text-align: left;
        margin-top: 5px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
    }

    .tab-btn {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .builder-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .entry-header {
        flex-direction: column;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-dismiss {
        margin-left: 0;
        width: 100%;
    }

    .hero-features {
        justify-content: center;
    }

    .nav-brand {
        display: none;
    }

    .nav-tabs {
        width: 100%;
    }
}

/* ========================================
   GUIDE PAGE STYLES
   ======================================== */

.guide-container {
    max-width: 900px;
}

.guide-toc {
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 30px;
    color: white;
}

.guide-toc h3 {
    margin: 0 0 15px 0;
    font-size: 1rem;
    opacity: 0.9;
}

.toc-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.toc-link {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.toc-link:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.guide-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--gray-200);
}

.guide-section:last-of-type {
    border-bottom: none;
}

.guide-section h3 {
    color: var(--dark-color);
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.guide-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-content h4 {
    margin: 0 0 8px 0;
    color: var(--dark-color);
    font-size: 1.05rem;
}

.step-content p {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.6;
}

.step-content code {
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--primary-dark);
}

.guide-card {
    background: var(--gray-100);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid var(--gray-200);
}

.guide-card h4 {
    margin: 0 0 12px 0;
    color: var(--dark-color);
    font-size: 1.05rem;
}

.guide-card p {
    margin: 0 0 12px 0;
    color: var(--gray-600);
}

.guide-card ul, .guide-card ol {
    margin: 12px 0;
    padding-left: 20px;
    color: var(--gray-700);
}

.guide-card li {
    margin-bottom: 8px;
}

.guide-note {
    background: rgba(243, 156, 18, 0.1);
    border-left: 4px solid var(--warning-color);
    padding: 12px 16px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--gray-700);
    margin-top: 15px;
}

.code-block {
    background: var(--gray-800);
    color: #e9ecef;
    padding: 15px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-top: 10px;
}

.guide-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.comparison-item {
    background: white;
    border-radius: var(--radius-sm);
    padding: 15px;
    border: 1px solid var(--gray-200);
}

.comparison-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.comparison-badge.ai {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.comparison-badge.manual {
    background: var(--gray-200);
    color: var(--gray-700);
}

.comparison-item h5 {
    margin: 0 0 8px 0;
    color: var(--dark-color);
}

.comparison-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.export-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.export-option {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--gray-100);
    padding: 15px;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
}

.export-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: white;
}

.export-icon.pdf {
    background: var(--danger-color);
}

.export-icon.docx {
    background: var(--info-color);
}

.export-icon.rtf {
    background: var(--success-color);
}

.export-option h4 {
    margin: 0 0 4px 0;
    color: var(--dark-color);
    font-size: 1rem;
}

.export-option p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--gray-600);
}

.privacy-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.privacy-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.privacy-check {
    width: 30px;
    height: 30px;
    background: var(--success-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.privacy-item h4 {
    margin: 0 0 4px 0;
    color: var(--dark-color);
    font-size: 1rem;
}

.privacy-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.guide-footer {
    text-align: center;
    padding: 20px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    color: var(--gray-600);
}

.guide-footer a {
    color: var(--primary-color);
    font-weight: 500;
}

/* ========================================
   FOOTER STYLES
   ======================================== */

.app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--gray-200);
    padding: 12px 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 100;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    font-weight: 700;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-divider {
    color: var(--gray-300);
}

.footer-privacy {
    color: var(--success-color);
    font-weight: 500;
}

@media (max-width: 600px) {
    .footer-brand {
        display: none;
    }
    
    .guide-toc {
        padding: 20px;
    }
    
    .toc-links {
        flex-direction: column;
    }
    
    .toc-link {
        text-align: center;
    }
    
    .guide-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
