/* Gerador de Orçamento - Pousada v2.0 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    line-height: 1.6;
}

body.dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* Container */
.login-container {
    width: 100%;
    max-width: 400px;
}

/* Login Card */
.login-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 32px 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    position: relative;
    margin-bottom: 24px;
}

body.dark .login-card {
    background: #1e293b;
    border-color: #334155;
}

/* Header */
.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.logo {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.login-header h1 {
    color: #1e293b;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.025em;
}

body.dark .login-header h1 {
    color: #f8fafc;
}

.login-header p {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

body.dark .login-header p {
    color: #94a3b8;
}

/* Theme Toggle */
.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.theme-toggle:hover {
    background: #f1f5f9;
}

body.dark .theme-toggle:hover {
    background: #334155;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

body.dark .form-group label {
    color: #e2e8f0;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
    color: #1e293b;
    font-size: 16px;
    font-weight: 400;
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
    resize: vertical;
}

body.dark .form-group input,
body.dark .form-group select,
body.dark .form-group textarea {
    background: #334155;
    border-color: #475569;
    color: #f8fafc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #6366F1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

body.dark .form-group input::placeholder,
body.dark .form-group textarea::placeholder {
    color: #64748b;
}

/* Radio Button Styles */
.radio-group {
    display: flex;
    gap: 16px;
    margin-top: 6px;
}

.radio-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    color: #374151;
    font-weight: 500;
}

body.dark .radio-wrapper {
    color: #e2e8f0;
}

.radio-wrapper input[type="radio"] {
    display: none;
}

.radio-mark {
    width: 16px;
    height: 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    transition: all 0.2s ease;
    background: #ffffff;
    flex-shrink: 0;
}

body.dark .radio-mark {
    border-color: #475569;
    background: #334155;
}

.radio-wrapper input[type="radio"]:checked + .radio-mark {
    border-color: #6366F1;
}

.radio-mark::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6366F1;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.radio-wrapper input[type="radio"]:checked + .radio-mark::after {
    opacity: 1;
}

/* Checkbox Styles */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    color: #374151;
    font-weight: 500;
}

body.dark .checkbox-wrapper {
    color: #e2e8f0;
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 16px;
    height: 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 3px;
    margin-right: 8px;
    position: relative;
    transition: all 0.2s ease;
    background: #ffffff;
}

body.dark .checkmark {
    border-color: #475569;
    background: #334155;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark {
    background: #6366F1;
    border-color: #6366F1;
}

.checkmark::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 3px;
    height: 7px;
    border: solid white;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark::after {
    opacity: 1;
}

/* Conditional Fields */
.conditional-field {
    margin-left: 24px;
    margin-top: 12px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.conditional-field.active {
    opacity: 1;
}

.conditional-field .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Buttons */
.login-btn {
    width: 100%;
    background: #6366F1;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    position: relative;
    margin-bottom: 20px;
    transition: all 0.2s ease;
    overflow: hidden;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-btn:hover {
    background: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn.secondary {
    background: #64748b;
}

.login-btn.secondary:hover {
    background: #475569;
}

.login-btn.success {
    background: #10b981;
}

.login-btn.success:hover {
    background: #059669;
}

/* Security Notice */
.security-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    margin-bottom: 16px;
}

body.dark .security-notice {
    background: #064e3b20;
    border-color: #10b981;
}

.security-notice span {
    color: #166534;
    font-size: 12px;
    font-weight: 500;
}

body.dark .security-notice span {
    color: #6ee7b7;
}

/* Warning Notice */
.warning-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #fffbeb; /* Cor de fundo amarela clara */
    border: 1px solid #fcd34d; /* Cor de borda amarela mais forte */
    border-radius: 8px;
    margin-bottom: 16px;
}

body.dark .warning-notice {
    background: #b45309; /* Cor de fundo amarela escura para tema escuro */
    border-color: #f59e0b; /* Cor de borda amarela mais forte para tema escuro */
}

.warning-notice span {
    color: #92400e; /* Cor do texto amarela escura */
    font-size: 12px;
    font-weight: 500;
}

body.dark .warning-notice span {
    color: #fef3c7; /* Cor do texto para tema escuro, mais clara */
}


/* Result Section */
.result-section {
    display: none;
}

.result-section.show {
    display: block;
}

.result-title {
    margin-bottom: 20px;
    color: #1e293b;
    font-size: 1.25rem;
}

body.dark .result-title {
    color: #f8fafc;
}

.markdown-output {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    color: #1e293b;
    margin-bottom: 16px;
    min-height: 200px;
}

body.dark .markdown-output {
    background: #334155;
    border-color: #475569;
    color: #f8fafc;
}

/* Copy Success Message */
.copy-success {
    background: #10b981;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    margin-top: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.copy-success.show {
    opacity: 1;
}

/* Pagina Reveillon */
.room-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    position: relative;
}

body.dark .room-item {
    background: #334155;
    border-color: #475569;
}

.room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.room-header h4 {
    color: #374151;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

body.dark .room-header h4 {
    color: #e2e8f0;
}

.remove-room-btn {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-room-btn:hover {
    background: #dc2626;
}

#addRoomBtn {
    margin-top: 12px;
    margin-bottom: 0;
}

.room-item .conditional-field {
    margin-left: 24px;
    margin-top: 12px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.room-item .conditional-field.active {
    opacity: 1;
}

/* Footer */
.app-footer {
    text-align: center;
    padding: 16px 0;
    margin-top: 16px;
}

.app-footer p {
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
}

body.dark .app-footer p {
    color: #94a3b8;
}

body .app-footer p a {
    color: #94a3b8;
    text-decoration: none;

}

/* Mobile Responsive */
@media (max-width: 480px) {
    body {
        padding: 16px;
    }
    
    .login-card {
        padding: 32px 24px 24px;
        border-radius: 12px;
    }
    
    .login-header h1 {
        font-size: 1.5rem;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .conditional-field {
        margin-left: 0;
        margin-top: 8px;
        padding-left: 16px;
        border-left: 2px solid #e2e8f0;
    }
    
    body.dark .conditional-field {
        border-left-color: #475569;
    }
    
    .conditional-field .form-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .app-footer {
        padding: 12px 0;
        margin-top: 12px;
    }
}

/* Additional styles for Help page */

/* Navigation */
.navigation {
    margin-bottom: 20px;
    text-align: center;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #64748b;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background: #475569;
    transform: translateY(-1px);
}

.nav-btn.secondary {
    background: #64748b;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 24px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 8px;
}

body.dark .tabs {
    background: #334155;
}

.tab-btn {
    flex: 1;
    background: transparent;
    color: #64748b;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

body.dark .tab-btn {
    color: #94a3b8;
}

.tab-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #6366F1;
}

.tab-btn.active {
    background: #6366F1;
    color: #ffffff;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Help Sections */
.help-section,
.changelog-section {
    margin-bottom: 32px;
}

.help-section h2,
.changelog-section h2 {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

body.dark .help-section h2,
body.dark .changelog-section h2 {
    color: #f8fafc;
}

.help-section h3 {
    color: #374151;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    margin-top: 24px;
}

body.dark .help-section h3 {
    color: #e2e8f0;
}

.help-section p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

body.dark .help-section p {
    color: #94a3b8;
}

.help-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

body.dark .help-item {
    background: #334155;
    border-color: #475569;
}

.help-item strong {
    color: #374151;
    font-weight: 600;
}

body.dark .help-item strong {
    color: #e2e8f0;
}

.help-item ul {
    margin-top: 8px;
    padding-left: 20px;
}

.help-item li {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 4px;
}

body.dark .help-item li {
    color: #94a3b8;
}

/* Version Blocks */
.version-block {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 24px;
    overflow: hidden;
}

body.dark .version-block {
    background: #334155;
    border-color: #475569;
}

.version-block.latest {
    border-color: #6366F1;
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.1);
}

.version-header {
    background: #f8fafc;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e2e8f0;
}

body.dark .version-header {
    background: #1e293b;
    border-color: #475569;
}

.version-block.latest .version-header {
    background: linear-gradient(135deg, #6366F1 0%, #4f46e5 100%);
    border-color: #6366F1;
}

.version-block.latest .version-header * {
    color: #ffffff !important;
}

.version-header h3 {
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

body.dark .version-header h3 {
    color: #f8fafc;
}

.version-date {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    margin-left: auto;
}

body.dark .version-date {
    color: #94a3b8;
}

.version-badge {
    background: #10b981;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
}

.version-badge.latest {
    background: #f59e0b;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.version-content {
    padding: 20px;
}

.version-content h4 {
    color: #374151;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 16px;
}

body.dark .version-content h4 {
    color: #e2e8f0;
}

.version-content h4:first-child {
    margin-top: 0;
}

.version-content ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.version-content li {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 6px;
}

body.dark .version-content li {
    color: #94a3b8;
}

.version-content li strong {
    color: #374151;
    font-weight: 600;
}

body.dark .version-content li strong {
    color: #e2e8f0;
}

/* Future Section */
.future-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px dashed #e2e8f0;
}

body.dark .future-section {
    border-color: #475569;
}

.future-section h3 {
    color: #6366F1;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.future-item {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(99, 102, 241, 0.02) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    padding: 16px;
}

.future-item h4 {
    color: #4338ca;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

body.dark .future-item h4 {
    color: #a78bfa;
}

.future-item ul {
    padding-left: 20px;
}

.future-item li {
    color: #6366F1;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 4px;
}

/* Mobile Responsive for Help page */
@media (max-width: 480px) {
    .tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        text-align: left;
    }
    
    .version-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .version-date {
        margin-left: 0;
    }
    
    .help-section h2,
    .changelog-section h2 {
        font-size: 1.25rem;
    }
}