/* Calculator/Presentation Page Styles */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: hsl(var(--surface-primary));
    color: hsl(var(--content-primary));
    line-height: 1.5;
    transition: background-color var(--timing-normal), color var(--timing-normal);
}

/* Layout */
.presentation-container {
    width: 90%;
    max-width: 1200px;
    background: hsl(var(--surface-primary));
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-pronounced);
    overflow: hidden;
    position: relative;
    margin: 2rem auto;
}

/* Slide System */
.slide {
    min-height: 600px;
    padding: 60px;
    display: none;
    animation: slideIn 0.5s ease-in-out;
}

.slide.active {
    display: block;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Navigation */
.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background: hsl(var(--surface-secondary));
    border-top: 1px solid hsl(var(--border-primary));
}

.slide-indicator {
    text-align: center;
    color: hsl(var(--content-secondary));
    font-size: 0.9em;
}

/* Navigation Menu */
.nav-menu {
    position: fixed;
    top: 2rem;
    left: 2rem;
    display: flex;
    gap: 0.5rem;
    z-index: 1000;
}

.nav-link {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid hsl(var(--border-primary));
    background: hsl(var(--surface-primary));
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: hsl(var(--content-primary));
    text-decoration: none;
}

.nav-link:hover {
    background: hsl(var(--surface-secondary));
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.dark .nav-link {
    color: white;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid hsl(var(--border-primary));
    background: hsl(var(--surface-primary));
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: hsl(var(--content-primary));
}

.theme-toggle:hover {
    background: hsl(var(--surface-secondary));
}

.dark .theme-toggle {
    color: white;
}

/* Floating Feedback Button */
.feedback-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: hsl(var(--feedback-success));
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: pulse 3s infinite;
}

.feedback-button:hover {
    background: hsl(var(--feedback-success) / 0.9);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
    animation: none;
}

.feedback-button svg {
    width: 20px;
    height: 20px;
}

/* Feedback Modal */
.feedback-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.feedback-modal.active {
    display: flex;
}

.modal-content {
    background: hsl(var(--surface-primary));
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    height: 85vh;
    max-height: 700px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 2px solid hsl(var(--border-primary));
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: hsl(var(--feedback-success));
    border-radius: 20px 20px 0 0;
}

.modal-header h2 {
    color: white;
    margin: 0;
    font-size: 1.5em;
}

.close-button {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsl(var(--surface-secondary));
}

.modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

.loading-indicator {
    color: hsl(var(--feedback-success));
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.loading-indicator::before {
    content: '';
    width: 30px;
    height: 30px;
    border: 3px solid hsl(var(--border-primary));
    border-top: 3px solid hsl(var(--feedback-success));
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Sections - keeping for component styling */

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

.section-header {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-description {
    color: hsl(var(--content-secondary));
    font-size: 1rem;
}

/* Cards */
.card {
    border: 1px solid hsl(var(--border-primary));
    border-radius: 12px;
    padding: 1.5rem;
    background: hsl(var(--surface-primary));
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    transition: all 0.2s;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-header {
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.card-description {
    color: hsl(var(--content-secondary));
    font-size: 0.875rem;
}

.card-content {
    color: hsl(var(--content-primary));
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: hsl(var(--surface-primary));
    border: 1px solid hsl(var(--border-primary));
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsl(var(--surface-secondary));
    border-radius: 12px;
    font-size: 1.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: hsl(var(--content-primary));
}

.stat-label {
    color: hsl(var(--content-secondary));
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Buttons */
.btn {
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    border: none;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: hsl(var(--action-primary));
    color: hsl(var(--content-inverse));
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-success {
    background: hsl(var(--feedback-success));
    color: white;
}

.download-report-btn {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.download-report-btn:hover {
    background: hsl(var(--feedback-success) / 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}

.download-report-btn svg {
    margin-right: 8px;
}

.btn-outline {
    background: transparent;
    border: 1px solid hsl(var(--border-primary));
    color: hsl(var(--content-primary));
}

.btn-outline:hover {
    background: hsl(var(--surface-secondary));
}

/* Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-number {
    width: 48px;
    height: 48px;
    background: hsl(var(--feedback-success));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    position: relative;
}

.timeline-item:not(:last-child) .timeline-number::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 48px;
    background: hsl(var(--border-primary));
}

.timeline-content {
    flex: 1;
}

.timeline-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: hsl(var(--content-secondary));
    font-size: 0.875rem;
}

/* Upload Demo */
.upload-area {
    border: 2px dashed hsl(var(--border-primary));
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    background: hsl(var(--surface-secondary));
    cursor: pointer;
    transition: all 0.3s;
    margin: 2rem 0;
}

.upload-area:hover {
    border-color: hsl(var(--feedback-success));
    background: hsl(var(--surface-secondary));
}

.upload-area.active {
    border-color: hsl(var(--feedback-success));
    background: hsl(var(--feedback-success) / 0.1);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: hsl(var(--border-primary));
    border-radius: 4px;
    overflow: hidden;
    margin: 1.5rem 0;
}

.progress-fill {
    height: 100%;
    background: hsl(var(--feedback-success));
    width: 0;
    transition: width 0.3s ease;
    border-radius: 4px;
}

/* Processing Animation */
.processing {
    display: none;
    text-align: center;
    padding: 2rem;
}

.processing.active {
    display: block;
}

.spinner {
    border: 3px solid hsl(var(--border-primary));
    border-top: 3px solid hsl(var(--feedback-success));
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

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

/* Results */
.results {
    display: none;
}

.results.active {
    display: block;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: hsl(var(--surface-primary));
    border: 1px solid hsl(var(--border-primary));
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.result-label {
    font-weight: 500;
}

.result-value {
    font-size: 1.25rem;
    font-weight: bold;
    color: hsl(var(--feedback-success));
}

.result-label small {
    display: block;
    font-size: 0.8rem;
    color: hsl(var(--content-secondary));
    font-weight: normal;
    margin-top: 2px;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-success {
    background: hsl(var(--feedback-success));
    color: white;
}

.badge-warning {
    background: hsl(var(--feedback-warning));
    color: white;
}

.badge-primary {
    background: hsl(var(--action-primary));
    color: hsl(var(--content-inverse));
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    padding: 2rem;
    background: hsl(var(--surface-primary));
    border: 1px solid hsl(var(--border-primary));
    border-radius: 12px;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, hsl(var(--feedback-success)) 0%, hsl(var(--feedback-success) / 0.8) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-description {
    color: hsl(var(--content-secondary));
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .presentation-container {
        width: 95%;
        margin: 1rem auto;
    }

    .slide {
        padding: 30px 20px;
    }

    .navigation {
        padding: 15px 20px;
    }

    .feedback-button {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 0.9em;
    }

    .theme-toggle {
        top: 1rem;
        right: 1rem;
    }

    .modal-content {
        width: 95%;
        height: 90vh;
        border-radius: 15px;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-header h2 {
        font-size: 1.2em;
    }

    .modal-body {
        padding: 10px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}
