/* ShowcaseViewer Component Styles */

/* Root Variables */
:root {
    --color-background: #FFFFFF;
    --color-accent: #F85C70;
    --color-text: #212529;
    --color-shadow: rgba(0, 0, 0, 0.1);
}

/* Modal Styles */
.modal-lg {
    max-width: 1024px; /* Increased for better 16:9 report display */
}

@media (min-width: 1200px) {
    .modal-lg {
        max-width: 1200px; /* Even wider on larger screens */
    }
}

.modal-header {
    align-items: flex-start;
}

.modal-header .privacy-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.modal-header .privacy-notice .bi-shield-lock {
    font-size: 0.9rem;
    color: var(--color-accent);
    opacity: 0.8;
}

.modal-title {
    color: var(--color-accent);
}

/* Content Area */
#showcase-content {
    min-height: 300px;
    transition: opacity 0.2s ease;
}

/* Tab Navigation */
#showcase-tabs .nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text);
    cursor: pointer;
}

#showcase-tabs .nav-link.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

#showcase-tabs .nav-link:hover {
    border-bottom-color: var(--color-accent);
    color: var(--color-accent);
}

.content-area {
    background: var(--color-background);
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px var(--color-shadow);
    min-height: 200px;
    transition: opacity 0.2s ease;
    padding: 1.5rem;
}

/* Markdown-like styling */
.content-area pre.content-text {
    font-family: inherit;
    white-space: pre-wrap;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}

.content-area h1 { font-size: 2em; margin-bottom: 1rem; }
.content-area h2 { font-size: 1.5em; margin: 1.5rem 0 1rem; }
.content-area h3 { font-size: 1.25em; margin: 1.25rem 0 0.75rem; }

.content-area ul, .content-area ol {
    padding-left: 2rem;
    margin: 1rem 0;
}

.content-area li {
    margin: 0.5rem 0;
}

.content-area code {
    background: rgba(0, 0, 0, 0.05);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9em;
}

/* PowerBI Report Container */
.report-container {
    width: 100%;
    position: relative;
    background: var(--color-background);
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px var(--color-shadow);
    margin-bottom: 2rem;
}

.powerbi-report-frame {
    width: 100%;
    height: 700px; /* Increased height to accommodate tabs */
    border: none;
    display: block;
    border-radius: 0.5rem;
}

#powerbi-container {
    width: 100%;
    position: relative;
    padding: 1rem;
}

#powerbi-container .loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

#powerbi-container .loading .spinner-border {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
}

.report-section {
    margin: 1rem 0;
}

.reports-wrapper {
    position: relative;
    min-height: 700px;
}

.report-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0.5rem;
}

.report-selector {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.report-counter {
    font-size: 0.875rem;
    color: var(--color-text);
    opacity: 0.7;
}

.report-title {
    color: var(--color-accent);
    font-size: 1.25rem;
    font-weight: 500;
}

.report-nav-buttons {
    display: flex;
    gap: 0.5rem;
}

.report-nav-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
}

.report-nav-buttons .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.report-nav-buttons .btn i {
    font-size: 0.875rem;
}

.content-area p {
    margin: 1rem 0;
    line-height: 1.6;
}

.content-area p:empty {
    display: none;
}

.content-area p:first-child {
    margin-top: 0;
}

.content-area p:last-child {
    margin-bottom: 0;
}

/* Loading Spinner */
.loading-spinner {
    padding: 2rem 0;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Content Transitions */
.content-text {
    opacity: 0;
    animation: fadeIn 0.3s ease forwards 0.2s;
}

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

/* Error State */
.alert-danger {
    border: none;
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.alert-danger .btn-outline-danger {
    border-color: rgba(220, 53, 69, 0.5);
    color: #dc3545;
}

.alert-danger .btn-outline-danger:hover {
    background-color: #dc3545;
    color: white;
}

/* Test Cards */
.test-card {
    cursor: pointer;
    transition: transform 0.2s;
    margin-bottom: 1rem;
}

.test-card:hover {
    transform: translateY(-5px);
}

/* Test Controls */
.test-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--color-shadow);
}

/* Test Logger */
.test-log {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 300px;
    max-height: 400px;
    overflow-y: auto;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--color-shadow);
    font-family: monospace;
    font-size: 0.8rem;
}

.test-log p {
    margin: 0;
    padding: 2px 0;
}

/* Test Log Status Colors */
.test-log .success { color: #198754; }
.test-log .error { color: #dc3545; }
.test-log .info { color: #0d6efd; }

/* General Page Layout */
body {
    padding: 2rem;
}
