/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --claude-bg: #FAF9F7;
    --claude-white: #FFFFFF;
    --claude-orange: #DC6B3C;
    --claude-orange-hover: #C45A2F;
    --claude-text: #2D2B26;
    --claude-text-secondary: #6B6966;
    --claude-border: #E8E5E1;
    --claude-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    --claude-shadow-hover: 0 4px 12px rgba(220, 107, 60, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background: #FAF9F7;
    line-height: 1.6;
    color: #2D2B26;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    max-width: 400px;
    width: 90%;
    border: 1px solid #E8E5E1;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
    color: #2D2B26;
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}



/* Button Styles */
.btn-blue {
    background: #DC6B3C;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-blue:hover {
    background: #C45A2F;
    box-shadow: 0 4px 12px rgba(220, 107, 60, 0.15);
    transform: translateY(-1px);
}

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

/* Error Message */
.error-message {
    color: #dc2626;
    font-size: 14px;
    margin-top: 8px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Main App Styles */
.main-app {
    display: none;
    min-height: 100vh;
    padding: 40px 20px;
}

.main-app.show {
    display: block;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.main-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 32px;
    color: #2D2B26;
}

/* Form Container */
.form-container {
    background: #FFFFFF;
    border: 1px solid #E8E5E1;
    border-radius: 12px;
    padding: 32px;
    margin-top: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    text-align: left;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #2D2B26;
    display: block;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea,
.password-form input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #E8E5E1;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: #FFFFFF;
    transition: all 0.2s ease;
    color: #2D2B26;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.password-form input:focus {
    outline: none;
    border-color: #DC6B3C;
    box-shadow: 0 0 0 3px rgba(220, 107, 60, 0.1);
}

/* Loading Styles */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #f7fafc;
}

.loading-content {
    text-align: center;
    max-width: 400px;
    padding: 40px;
}

.loading-title {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 32px;
}

.loading-spinner {
    border: 3px solid #E8E5E1;
    border-top: 3px solid #DC6B3C;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-status {
    font-size: 16px;
    color: #4a5568;
    margin-bottom: 12px;
}

.loading-subtitle {
    font-size: 14px;
    color: #718096;
}

/* Results Page Styles */
.results-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

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

.results-title {
    font-size: 28px;
    font-weight: 700;
    color: #2D2B26;
    margin: 0;
}

.tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid #E8E5E1;
    background: #FFFFFF;
    border-radius: 12px 12px 0 0;
    padding: 4px;
}

.tab {
    padding: 10px 20px;
    background: none;
    border: none;
    color: #6B6966;
    cursor: pointer;
    font-weight: 500;
    position: relative;
    transition: all 0.2s;
    font-family: inherit;
    font-size: 15px;
    border-radius: 8px;
}

.tab:hover {
    color: #2D2B26;
    background: rgba(220, 107, 60, 0.05);
}

.tab.active {
    color: #DC6B3C;
    background: rgba(220, 107, 60, 0.08);
}

.tab.active::after {
    display: none;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.content-card {
    background: #FFFFFF;
    border: 1px solid #E8E5E1;
    border-radius: 12px;
    padding: 2rem;
    min-height: 300px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.content-card h3 {
    margin-top: 0;
    margin-bottom: 16px;
    color: #2d3748;
    font-size: 20px;
    font-weight: 600;
}

.ai-content {
    text-align: left;
    line-height: 1.8;
    white-space: pre-wrap;
    font-size: 15px;
    color: #4a5568;
}

.ai-content strong {
    color: #2d3748;
    font-weight: 600;
}

.ai-content em {
    color: #718096;
    font-style: italic;
}

/* Action Buttons */
.action-buttons {
    margin-top: 32px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-buttons .btn-blue {
    text-decoration: none;
    display: inline-block;
}

/* Guest Info */
.guest-info {
    margin-top: 16px;
    padding: 16px;
    background: #FAF9F7;
    border-radius: 8px;
    text-align: left;
    border: 1px solid #E8E5E1;
}

.guest-info p {
    margin-bottom: 8px;
    font-size: 14px;
}

.guest-info a {
    color: #DC6B3C;
    text-decoration: none;
    font-weight: 500;
}

.guest-info a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .results-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .main-title {
        font-size: 24px;
    }
    
    .form-container {
        padding: 24px;
    }
    
    .container {
        padding: 0 10px;
    }
}