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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: url('assets/bg-orange.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    color: #333;
}

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

header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #4a4a4a 0%, #a14447 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.demo-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.input-section {
    text-align: center;
    margin-bottom: 30px;
}

.input-section h2 {
    margin-bottom: 20px;
    color: #333;
}

.analyze-btn, .tco-btn, .migration-btn, .validate-btn {
    background: linear-gradient(135deg, #f39c4e 0%, #a14447 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tco-btn {
    background: linear-gradient(135deg, #f39c4e 0%, #a14447 100%);
    margin-left: 10px;
}

.analyze-btn:hover:not(:disabled), .tco-btn:hover:not(:disabled), .migration-btn:hover:not(:disabled), .validate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.analyze-btn:disabled, .tco-btn:disabled, .migration-btn:disabled, .validate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.loading {
    text-align: center;
    padding: 40px;
    display: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

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

.card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid #a14447;
}

.card h3 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card p {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.analysis-report {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.analysis-report h3 {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #a14447;
    padding-bottom: 10px;
}

.tco-report h3 {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #a14447;
    padding-bottom: 10px;
}

.validation-report h3 {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #a14447;
    padding-bottom: 10px;
}

.report-content {
    line-height: 1.6;
    display: none;
}

.report-content h2 {
    color: #333;
    margin: 20px 0 10px 0;
}

.report-content h3 {
    color: #333;
    margin: 15px 0 8px 0;
}

.report-content h4 {
    color: #333;
    margin: 10px 0 5px 0;
}

.report-content ul {
    margin: 10px 0 10px 20px;
}

.report-content li {
    margin: 5px 0;
}

.json-output {
    background: #2d3748;
    padding: 20px;
    border-radius: 8px;
    color: white;
}

.json-output h3 {
    margin-bottom: 15px;
    color: #e2e8f0;
}

.toggle-btn {
    background: #4a5568;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 15px;
}

.toggle-btn:hover {
    background: #2d3748;
}

#jsonDisplay {
    background: #1a202c;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 4px;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    max-height: 500px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    display: none;
}

.progress-step {
    display: flex;
    align-items: center;
    margin: 10px 0;
    padding: 8px;
    border-radius: 4px;
}

.progress-step.active {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
}

.progress-step.completed {
    background: #e8f5e8;
    border-left: 4px solid #4caf50;
}

.progress-step.pending {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
}

.progress-step.error {
    background: #ffebee;
    border-left: 4px solid #f44336;
}

.step-icon {
    margin-right: 10px;
    font-size: 1.2em;
}

.step-text {
    font-weight: 500;
}

.flash-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    z-index: 1000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.flash-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.flash-notification.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.flash-notification.error {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.migration-btn {
    margin-left: 10px;
    display: none;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.migration-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

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

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .demo-section {
        padding: 20px;
    }
    
    .summary-cards {
        grid-template-columns: 1fr;
    }
}
.toggle-btn {
    background: linear-gradient(135deg, #f39c4e 0%, #a14447 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.toggle-btn:hover {
    background: linear-gradient(135deg, #f39c4e 0%, #a14447 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 156, 78, 0.3);
}

.tco-section {
    margin-top: 30px;
    display: none;
}

.validation-section {
    margin-top: 30px;
    display: none;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

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

.tco-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.tco-report {
    margin-top: 20px;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
}
#migrationProgress {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: left;
}
.results-section {
    display: none;
}
.migration-actions {
    margin-top: 20px;
    text-align: center;
}
#tcoJsonDisplay {
    display: none;
    background: #1a202c;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 4px;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    max-height: 500px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Chat Styles */
.chat-section {
    margin-bottom: 2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.chat-container {
    background: #f8f9fa;
    border-top: 1px solid #ddd;
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 1rem;
    background: white;
}

.chat-message {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    max-width: 80%;
}

.chat-message.user {
    background: linear-gradient(135deg, #f39c4e 0%, #a14447 100%);
    color: white;
    margin-left: auto;
    text-align: right;
}

.chat-message.bot {
    background: #e9ecef;
    color: #333;
}

.chat-input {
    display: flex;
    padding: 1rem;
    gap: 0.5rem;
    background: #f8f9fa;
}

.chat-input input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.chat-input button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #f39c4e 0%, #a14447 100%);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.chat-input button:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.chat-input button:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
}

.section-header h2 {
    margin: 0;
    color: #333;
}

.toggle-btn {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #f39c4e 0%, #a14447 100%);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.toggle-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* Footer styles */
.site-footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid #ddd;
    color: #a14447;
}

.site-footer div {
    display: inline;
    color: #737373;
}

.footer-link {
    color: #a14447;
    text-decoration: none;
}

.footer-link:hover {
    color: #f39c4e;
}

/* Privacy policy specific styles */
.section-content {
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.section-content h2 {
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.section-content h2:first-of-type {
    margin-top: 20px;
}

.section-content ul {
    margin: 15px 0;
    padding-left: 25px;
}

.section-content li {
    margin-bottom: 8px;
}

.section-content p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.navigation-links {
    text-align: center;
    margin: 20px 0;
}

/* Architecture diagram styles */
.architecture-diagram {
    text-align: center;
    padding: 20px;
}

.architecture-diagram img {
    max-width: 100%;
    height: auto;
}

/* Remove underline from button links */
a.analyze-btn {
    text-decoration: none;
}
