/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8fafc;
    color: #374151;
    line-height: 1.6;
}

/* Multiple Solutions Styles */
.multiple-solutions-container {
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.solutions-header {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.solutions-header h3 {
    margin: 0 0 10px 0;
    font-size: 1.4em;
    font-weight: 600;
}

.solutions-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1em;
}

.solution-item {
    border-bottom: 1px solid #e0e0e0;
    background: white;
}

.solution-item:last-child {
    border-bottom: none;
}

.solution-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
}

.solution-header h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.2em;
    font-weight: 600;
}

.solution-content {
    padding: 20px;
}

.thinking-process {
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.thinking-header {
    background: #f8f9fa;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid #e9ecef;
}

.thinking-header span {
    font-weight: 600;
    color: #495057;
}

.toggle-thinking {
    background: #007bff;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85em;
    cursor: pointer;
    transition: background-color 0.2s;
}

.toggle-thinking:hover {
    background: #0056b3;
}

.thinking-content {
    padding: 16px;
    background: #f8f9fa;
    display: none;
    border-top: 1px solid #e9ecef;
}

.thinking-process.expanded .thinking-content {
    display: block;
}

.final-response {
    line-height: 1.6;
    color: #2c3e50;
}

.final-response h1, .final-response h2, .final-response h3 {
    color: #2c3e50;
    margin-top: 24px;
    margin-bottom: 12px;
}

.final-response code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9em;
}

.final-response pre {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    border-left: 4px solid #007bff;
}

.final-response blockquote {
    border-left: 4px solid #007bff;
    padding-left: 16px;
    margin: 16px 0;
    color: #6c757d;
    font-style: italic;
}

/* Warning message styles */
.message.warning {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
}

.message.warning .message-header {
    font-weight: 600;
    margin-bottom: 8px;
}

.message.warning .message-content {
    opacity: 0.95;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    margin-bottom: 2rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.header h3 {
    color: #374151;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.header hr {
    border: none;
    height: 1px;
    background-color: #e5e7eb;
    margin: 0 auto;
    width: 200px;
}

/* Main content */
.main-content {
    display: grid;
    gap: 2rem;
    align-items: start;
}

/* Common section styles */
section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

section h4 {
    margin-bottom: 1rem;
    color: #374151;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Utility classes */
.hidden {
    display: none !important;
}

/* Header buttons */
.header-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.admin-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.logout-btn {
    background: #dc3545;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}
