:root {
    --primary-color: #1a2332;
    --primary-light: #2d3a4d;
    --accent-color: #00a8e8;
    --accent-hover: #0096d1;
    --secondary-color: #e31e24;
    --secondary-light: #ff3d43;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #c53030;
    --text-dark: #1a202c;
    --text-medium: #4a5568;
    --text-light: #718096;
    --border-color: #e2e8f0;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(to bottom, #f0f4f8 0%, #e2e8f0 100%);
    min-height: 100vh;
    padding: 20px;
    letter-spacing: -0.01em;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Old header styles removed - replaced with standardized Try Swiss Knife header */
/* See Language Selector section below for new header styles */


/* Info Banner */
.info-banner {
    background: linear-gradient(135deg, #e3f2fd 0%, #e1f5fe 100%);
    border: 1.5px solid #4fc3f7;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 4px rgba(79, 195, 247, 0.1);
}

.info-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.info-text {
    color: #01579b;
    font-size: 0.9rem;
    line-height: 1.5;
}

.info-text strong {
    color: #004d7a;
    font-weight: 600;
}

.info-close {
    background: none;
    border: none;
    color: #01579b;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
    margin-left: 8px;
}

.info-close:hover {
    background: rgba(1, 87, 155, 0.1);
    color: #004d7a;
}

.card {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 35px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
}

/* Draft Section */
.draft-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.draft-label {
    font-size: 0.85rem;
    color: var(--text-medium);
    margin-bottom: 10px;
    font-weight: 500;
}

.draft-container {
    /* Container for draft card */
}

.draft-card {
    background: var(--bg-light);
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    max-width: 500px;
}

.draft-card:hover {
    border-color: var(--accent-color);
    background: #e6f7ff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.draft-info {
    flex: 1;
}

.draft-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.draft-time {
    font-size: 0.8rem;
    color: var(--text-light);
}

.draft-delete {
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

.draft-card:hover .draft-delete {
    opacity: 1;
}

.draft-delete:hover {
    background: #a02020;
    transform: scale(1.1);
}

h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 18px;
}

.modal-content .form-group {
    margin-bottom: 15px;
}

.transport-type-select {
    font-size: 0.95rem;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: var(--bg-white);
    color: var(--text-dark);
    font-family: inherit;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
    text-transform: none;
    font-size: 0.9rem;
}

.date-input-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}

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

.btn-primary:hover {
    background: var(--primary-light);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--accent-color);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--accent-hover);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.btn-outline {
    background: var(--bg-white);
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
}

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

.actions-bar {
    background: var(--bg-white);
    padding: 25px 35px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

#voyage-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: -0.01em;
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

#itinerary-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.day-card {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 0;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.day-card:hover {
    box-shadow: var(--shadow-md);
}

.day-header {
    background: var(--primary-color);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    border-bottom: 3px solid var(--accent-color);
}

.day-label {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Day Highlight Section */
.day-highlight-section {
    background: var(--bg-light);
    padding: 15px 25px;
    border-bottom: 1px solid var(--border-color);
}

.day-highlight-toggle {
    background: var(--bg-white);
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-medium);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.day-highlight-toggle:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: #e6f7ff;
}

.day-highlight-toggle.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.day-highlight-content {
    margin-top: 12px;
}

.day-highlight-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: all 0.2s ease;
    background: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.5;
}

.day-highlight-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.1);
}

.day-highlight-textarea::placeholder {
    color: var(--text-light);
    font-style: italic;
}

.city-inputs {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.city-input {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 14px;
    border-radius: 6px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.city-input span {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.city-input input {
    background: transparent;
    border: none;
    color: white;
    font-size: 0.9rem;
    width: 150px;
    padding: 4px;
}

.city-input input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.city-input input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
}

.day-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-day-action {
    padding: 7px 14px;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-day-action:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.btn-delete-day:hover {
    background: var(--danger-color);
    border-color: var(--danger-color);
}

.btn-add-day:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

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

.section {
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    padding: 18px;
    min-height: 150px;
    background: var(--bg-light);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.section-title {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
}

.add-activity {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.add-activity:hover {
    background: var(--primary-light);
    transform: scale(1.1);
    box-shadow: var(--shadow);
}

.activities-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 50px;
}

.activity-item {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px;
    padding-right: 40px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: move;
    transition: all 0.2s ease;
    min-height: 70px;
    position: relative;
}

.activity-item:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-color);
    transform: translateX(3px);
}

.activity-item.dragging {
    opacity: 0.5;
}

.activity-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    cursor: help;
    margin-top: 2px;
}

.activity-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.activity-description {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 400;
    line-height: 1.4;
    word-wrap: break-word;
}

.activity-metadata {
    display: flex;
    flex-direction: row;
    gap: 6px;
    align-items: center;
}

.activity-meta-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.activity-url-icon {
    background: #e6f7ff;
    color: var(--accent-color);
}

.activity-url-icon:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.1);
}

.activity-note-icon {
    background: #fff0f0;
    color: var(--secondary-color);
    position: relative;
}

.activity-note-icon:hover {
    background: var(--secondary-color);
    color: white;
    transform: scale(1.1);
}

/* Note Popup */
.note-popup {
    position: fixed;
    background: var(--bg-white);
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    padding: 15px;
    max-width: 300px;
    box-shadow: var(--shadow-md);
    z-index: 1001;
    display: none;
}

.note-popup.active {
    display: block;
}

.note-popup-header {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.note-popup-content {
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.note-popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-light);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.note-popup-close:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.delete-activity {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 4px;
    width: 26px;
    height: 26px;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.activity-item:hover .delete-activity {
    opacity: 1;
}

.delete-activity:hover {
    background: #a02020;
    transform: scale(1.1);
}

.edit-activity {
    position: absolute;
    top: 38px;
    right: 8px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    width: 26px;
    height: 26px;
    font-size: 0.95rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.activity-item:hover .edit-activity {
    opacity: 1;
}

.edit-activity:hover {
    background: var(--accent-hover);
    transform: scale(1.1);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 32, 44, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    max-height: 90vh;
    overflow-y: auto;
    margin: auto;
}

.modal-content h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 600;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    position: sticky;
    top: 0;
    background: var(--bg-white);
    z-index: 1;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    position: sticky;
    bottom: 0;
    background: var(--bg-white);
    padding-top: 15px;
}

/* Drag and Drop */
.section.drag-over {
    background: #e6f0ff;
    border-color: var(--primary-color);
    box-shadow: inset 0 0 0 2px var(--primary-color);
}

/* Tooltip */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    font-size: 0.8rem;
    margin-bottom: 8px;
    box-shadow: var(--shadow);
}

.tooltip:hover::after {
    opacity: 1;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 20px;
    color: var(--text-light);
    font-style: italic;
    font-size: 0.85rem;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Old header mobile styles removed */

    .sections-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .actions-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .city-inputs {
        flex-direction: column;
        width: 100%;
    }

    .city-input input {
        width: 100%;
    }

    .day-header {
        flex-direction: column;
        align-items: stretch;
        padding: 18px 20px;
    }

    .day-label {
        text-align: center;
        margin-bottom: 12px;
    }

    .day-actions {
        width: 100%;
        justify-content: center;
    }

    .btn-day-action {
        flex: 1;
    }
    
    .card {
        padding: 25px 20px;
    }
}

/* Footer */
.app-footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
    padding: 20px;
    text-align: center;
    margin-top: 40px;
    border-radius: 8px 8px 0 0;
}

.app-footer p {
    margin: 0;
    color: var(--text-medium);
    font-size: 0.9rem;
}

.app-footer p + p {
    margin-top: 8px;
}

.footer-separator {
    margin: 0 8px;
    color: var(--text-light);
}

.footer-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.footer-link:hover {
    color: var(--accent-hover);
    border-bottom-color: var(--accent-hover);
}

/* Privacy Modal */
.privacy-modal-content {
    max-width: 550px;
}

.privacy-section {
    margin-bottom: 20px;
}

.privacy-section h4 {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.privacy-section p {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 10px;
}

.privacy-section ul {
    margin: 10px 0 0 20px;
    color: var(--text-dark);
}

.privacy-section li {
    margin-bottom: 6px;
    line-height: 1.5;
}

.privacy-footer {
    background: var(--bg-light);
    padding: 15px;
    border-radius: 6px;
    border-left: 3px solid var(--accent-color);
    margin-bottom: 20px;
}

.privacy-footer p {
    margin: 0;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.privacy-footer em {
    color: var(--accent-color);
    font-style: normal;
    font-weight: 600;
}

.privacy-note {
    font-size: 0.85rem;
    color: var(--text-medium);
    font-style: italic;
    margin-top: 8px;
}

.modal-actions {
    margin-top: 25px;
    text-align: center;
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .actions-bar,
    .add-activity,
    .delete-activity,
    .btn-day-action {
        display: none !important;
    }

    .day-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
        margin-bottom: 20px;
    }
    
    .day-header {
        background: #f0f4f8 !important;
        color: var(--primary-color) !important;
        border-bottom: 2px solid var(--primary-color);
    }
}

/* Loading State */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 20px;
    color: var(--text-light);
    font-style: italic;
}

/* Execute Plan Button */
.btn-accent {
    background: var(--success-color);
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* Execute Confirmation Modal */
.execute-info {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 3px solid var(--warning-color);
}

.execute-info p {
    margin-bottom: 12px;
    color: var(--text-dark);
    line-height: 1.6;
}

.execute-info ul {
    margin: 15px 0 15px 20px;
    color: var(--text-dark);
}

.execute-info li {
    margin-bottom: 8px;
    line-height: 1.5;
}


/* Executing Plan Card */
.executing-card {
    cursor: pointer;
    border-left: 3px solid var(--success-color);
}

.executing-card:hover {
    border-color: #059669;
    background: #f0fdf4;
}

/* File Type Hints */
.file-type-hint {
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 6px;
    font-style: italic;
}

.setup-section .file-type-hint {
    margin-top: 8px;
    margin-bottom: 20px;
}

/* Button with hint wrapper */
.button-with-hint {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.button-with-hint .file-type-hint {
    margin: 0;
    white-space: nowrap;
}

/* Ensure action buttons align at top */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start; /* Align to top instead of stretch */
}

/* Mobile: all buttons full width */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .action-buttons .btn,
    .button-with-hint {
        width: 100%;
    }
    
    .button-with-hint .btn {
        width: 100%;
    }
}


/* PDF Customization Modal */
.pdf-customize-content {
    max-width: 500px;
}

.pdf-customize-section {
    margin: 20px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.agency-fields {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
    border-left: 3px solid var(--accent-color);
}

.agency-fields .form-group {
    margin-bottom: 15px;
}

.agency-fields .form-group:last-child {
    margin-bottom: 0;
}

.agency-fields label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.agency-fields .required {
    color: var(--secondary-color);
}

.agency-fields input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9375rem;
    transition: all 0.2s;
}

.agency-fields input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.1);
}

.agency-fields input::placeholder {
    color: var(--text-light);
}


/* PDF Tip */
.pdf-tip {
    background: #e3f2fd;
    border-left: 3px solid var(--accent-color);
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #01579b;
}

.pdf-tip strong {
    color: #004d7a;
    font-weight: 600;
}

.pdf-tip .tip-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--accent-color);
}

.pdf-tip .tip-link:hover {
    color: var(--accent-hover);
    border-bottom-color: var(--accent-hover);
}


/* SEO-Optimized About Section */
.about-section {
    margin-bottom: 30px;
}

.about-toggle {
    width: 100%;
    background: linear-gradient(135deg, #e3f2fd 0%, #e1f5fe 100%);
    border: 1.5px solid #4fc3f7;
    border-radius: 10px;
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
    color: #01579b;
    text-align: left;
}

.about-toggle:hover {
    background: linear-gradient(135deg, #bbdefb 0%, #b3e5fc 100%);
    border-color: #00a8e8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 168, 232, 0.15);
}

.about-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.about-title {
    flex: 1;
}

.toggle-icon {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.about-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

.about-content {
    background: var(--bg-white);
    border: 1.5px solid #e3f2fd;
    border-top: none;
    border-radius: 0 0 10px 10px;
    padding: 30px;
    margin-top: -10px;
    animation: slideDown 0.3s ease;
}

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

.about-content h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 25px;
    line-height: 1.4;
}

.about-content h3 {
    color: var(--primary-color);
    font-size: 1.125rem;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.about-column ul,
.about-column ol {
    margin: 15px 0;
    padding-left: 25px;
}

.about-column li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: var(--text-dark);
}

.about-column li strong {
    color: var(--primary-color);
}

.how-to-steps {
    counter-reset: step-counter;
    list-style: none;
    padding-left: 0;
}

.how-to-steps li {
    counter-increment: step-counter;
    margin-bottom: 20px;
    padding-left: 45px;
    position: relative;
}

.how-to-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--accent-color);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
}

.how-to-steps li strong {
    display: block;
    margin-bottom: 6px;
    color: var(--primary-color);
}

.how-to-steps li p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-medium);
}

.features-section {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 10px;
    margin-top: 25px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.feature-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
}

.feature-item strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 6px;
    font-size: 0.9375rem;
}

.feature-item p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-medium);
}

.use-cases-section {
    margin-top: 25px;
}

.use-cases-section ul {
    margin-top: 15px;
    padding-left: 25px;
}

.use-cases-section li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.use-cases-section li strong {
    color: var(--primary-color);
}

.keywords-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.keywords-section p {
    margin: 0;
    line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .about-content {
        padding: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .about-toggle {
        font-size: 0.9375rem;
        padding: 14px 16px;
    }
}

/* Cache Refresh Hint */
.cache-refresh-hint {
    margin-top: 20px;
    padding: 12px 16px;
    background: #fff8e1;
    border: 1px solid #ffa726;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #e65100;
    line-height: 1.6;
    text-align: center;
}

.cache-refresh-hint kbd {
    display: inline-block;
    padding: 3px 7px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #333;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    margin: 0 2px;
}

@media (max-width: 768px) {
    .cache-refresh-hint {
        font-size: 0.8125rem;
        padding: 10px 12px;
    }
    
    .cache-refresh-hint kbd {
        font-size: 0.75rem;
        padding: 2px 5px;
    }
}

/* ==========================================
   Language Selector
   ========================================== */

.language-selector {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    font-weight: 500;
}

.language-btn:hover {
    background-color: var(--bg-light);
    border-color: var(--accent-color);
}

.lang-icon {
    font-size: 1.125rem;
}

.lang-arrow {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.language-btn[aria-expanded="true"] .lang-arrow {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    z-index: 1000;
    display: none;
}

.language-dropdown.show {
    display: block;
    animation: slideDown 0.2s ease;
}

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

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.625rem 1rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.875rem;
}

.lang-option:hover {
    background-color: var(--bg-light);
}

.lang-option:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.lang-option:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.lang-check {
    color: var(--accent-color);
    font-weight: bold;
    visibility: hidden;
    width: 16px;
}

.lang-option.active .lang-check {
    visibility: visible;
}

/* Updated Header Styles for New Structure */
.header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.header-logo-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.header-logo-link:hover {
    opacity: 0.8;
}

.logo-image {
    height: 110px;
    width: auto;
}

.tool-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Mobile Responsiveness for Language Selector */
@media (max-width: 768px) {
    .header-content {
        padding: 1rem;
    }
    
    .logo-image {
        height: 90px;
    }
    
    .tool-name {
        font-size: 1.25rem;
    }
    
    .language-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .lang-icon {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0.75rem;
    }
    
    .logo-image {
        height: 70px;
    }
    
    .tool-name {
        font-size: 1.125rem;
    }
}
