html,
body {
    max-width: 100%;
    overflow-x: hidden;
}
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}
/* Card-based layout for analysis/JSON sections */



.analysis-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    margin-bottom: 2rem;
    overflow-x: hidden;
}

.analysis-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--ozean-accent);
    box-shadow: 0 2px 12px rgba(15,23,42,0.10);
    padding: 1.25rem;
    width: 100%;
    max-width: 42rem;
    margin: 0 auto;
    box-sizing: border-box;
    overflow-wrap: anywhere;
}

pre,
code {
    white-space: pre-wrap;
    overflow-x: hidden;
    word-break: break-word;
    max-width: 100%;
}
@media (max-width: 1024px) and (orientation: portrait) {
    .analysis-card {
        max-width: 100%;
        border-radius: 18px;
    }
}

@media (max-width: 1024px) and (orientation: portrait) {
    .analysis-card {
        max-width: 100%;
        border-radius: 18px;
    }
}

/*
 * Ozean Briefing App - Bootstrap overrides for iPad portrait
 */

/* Briefing Container */
.briefing-container {
    padding: 20px;
}

/* Report Meta */
.report-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
    flex-wrap: wrap;
    gap: 15px;
}

.report-date {
    font-size: 1.1em;
    color: var(--ozean-blue);
}

.report-date span {
    color: var(--ozean-accent);
    font-weight: 600;
}

.record-counter {
    font-size: 0.95em;
    color: #64748b;
    font-weight: 500;
}

/* Sections */
.section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--ozean-blue);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-left: 5px solid var(--ozean-accent);
    padding-left: 15px;
}

.section-content {
    line-height: 1.8;
    color: #334155;
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.html-briefing {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border: 2px solid var(--ozean-accent);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    line-height: 1.8;
}

/* JSON Sections */
.json-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.json-item {
    background: #f0fdf4;
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 6px;
    border-left: 4px solid var(--ozean-accent);
}

.json-item-title {
    font-weight: 700;
    color: var(--ozean-blue);
    margin-bottom: 8px;
    font-size: 1.05em;
}

.json-item-content {
    color: #334155;
    font-size: 0.95em;
    line-height: 1.6;
}

/* Navigation */
.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
    flex-wrap: wrap;
}

.nav-button {
    padding: 14px 28px;
    font-size: 1em;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    background: var(--ozean-accent);
    color: var(--ozean-blue);
}

.nav-button:hover:not(:disabled) {
    background: #48a889;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(85, 191, 159, 0.3);
    text-decoration: none;
    color: var(--ozean-blue);
}

.nav-button:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    opacity: 0.5;
}

.nav-button.logout {
    background: #64748b;
    color: white;
}

.nav-button.logout:hover {
    background: #475569;
    color: white;
}

.nav-info {
    text-align: center;
    color: #334155;
    font-weight: 500;
}

.no-data {
    background: #fef2f2;
    border: 2px solid #e11d48;
    color: #7f1d1d;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    margin: 30px 0;
}

/* iPad Portrait (768px - 1024px) - Primary Target */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .briefing-container {
        padding: 25px;
    }

    .section-title {
        font-size: 1.6em;
    }

    .section-content,
    .html-briefing {
        font-size: 1.1em;
        padding: 30px;
    }

    .nav-button {
        padding: 16px 32px;
        font-size: 1.1em;
    }

    .report-meta {
        padding: 25px;
    }

    .json-item {
        padding: 20px;
    }
}

/* Desktop (1025px+) */
@media (min-width: 1025px) {
    .container {
        max-width: 1200px;
    }

    .briefing-container {
        padding: 30px;
    }
}

/* Mobile (below 768px) */
@media (max-width: 767px) {
    .report-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .navigation {
        flex-direction: column;
    }

    .nav-button {
        width: 100%;
    }

    .section-title {
        font-size: 1.2em;
    }

    .section-content,
    .html-briefing {
        padding: 15px;
        font-size: 0.95em;
    }
}

@media (max-width: 1024px) and (orientation: portrait) {
    .card {
        box-shadow: 0 4px 20px rgba(15, 23, 42, 0.12);
        border-radius: 18px;
    }

    .header {
        font-size: 2.2rem;
        padding: 2rem 1rem;
    }

    .container {
        padding: 2rem 0.5rem;
    }
}

.btn-primary {
    background: var(--ozean-accent);
    border-color: var(--ozean-accent);
    color: var(--ozean-blue);
    font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #48a889;
    border-color: #48a889;
    color: var(--ozean-blue);
}

.card-title {
    color: var(--ozean-blue);
    font-weight: 700;
}

.card {
    border: 1px solid rgba(15, 23, 42, 0.1);
}

a {
    color: var(--ozean-accent);
    text-decoration: none;
}

a:hover {
    color: #48a889;
    text-decoration: underline;
}