/* KY Portal Reports Dashboard - Dark navy blue theme */

:root {
    --navy: #0a1929;
    --navy-light: #1e3a5f;
    --navy-hover: #2c5282;
    --navy-focus: rgba(30, 58, 95, 0.2);
}

.reports-body {
    background-color: #f5f5f5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.dashboard-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.reports-inner {
    overflow: hidden;
    flex: 1;
}

.reports-header {
    background-color: white;
    padding: 16px 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.reports-header-title {
    color: #111827;
    font-weight: 600;
    font-size: 20px;
}

.reports-sidebar {
    background-color: var(--navy);
    color: white;
    padding: 0;
    width: 250px;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex-shrink: 0;
}

.reports-sidebar-nav {
    padding: 24px 0;
    flex: 1;
}

.reports-sidebar .nav {
    padding: 0;
    margin: 0;
}

.reports-sidebar .nav-link {
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.95);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 3px solid transparent;
    text-decoration: none;
}

.reports-sidebar .nav-link:hover {
    background-color: var(--navy-light);
    color: white;
}

.reports-sidebar .nav-link.active {
    background-color: var(--navy-light);
    border-left-color: rgba(255, 255, 255, 0.9);
    color: white;
    font-weight: 500;
}

.reports-sidebar .sidebar-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.reports-sidebar-user {
    flex-shrink: 0;
}

.reports-sidebar .sidebar-collapse-toggle {
    cursor: pointer;
}

.reports-sidebar .sidebar-collapse-toggle .sidebar-chevron {
    transition: transform 0.2s ease;
}

.reports-sidebar .sidebar-report-links {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.reports-sidebar .sidebar-report-links .nav-link {
    padding: 10px 20px 10px 44px;
    font-size: 0.95em;
}

.reports-main {
    background-color: #f9fafb;
    padding: 24px;
    overflow-y: auto;
}

/* Login page: risk-engine style (teal header, credentials box, matching buttons) */
.reports-login-page {
    min-height: 100vh;
}

.reports-login-card {
    width: 100%;
    max-width: 420px;
    border-radius: 8px;
}

.reports-login-card-header {
    background-color: var(--navy);
    color: white;
    padding: 28px 24px;
    text-align: center;
}

.reports-login-card-header-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.reports-login-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: white;
}

.reports-login-card-subtitle {
    font-size: 0.9rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.reports-login-input-icon {
    width: 18px;
    height: 18px;
    color: #6b7280;
}

.reports-login-input-group .input-group-text {
    background-color: white;
    border: 1px solid #d1d5db;
    border-right: 0;
    border-radius: 6px 0 0 6px;
}

.reports-login-input-group .form-control {
    border: 1px solid #d1d5db;
    border-left: 0;
    border-radius: 0 6px 6px 0;
}

.reports-login-input-group .form-control::placeholder {
    color: #9ca3af;
}

.reports-login-input-group:focus-within .input-group-text,
.reports-login-input-group:focus-within .form-control {
    border-color: var(--navy);
    box-shadow: 0 0 0 2px var(--navy-focus);
}

.reports-login-btn-signin {
    background-color: var(--navy);
    border-color: var(--navy);
    color: white;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.reports-login-btn-signin:hover {
    background-color: var(--navy-light);
    border-color: var(--navy-light);
    color: white;
}

.reports-login-btn-icon {
    width: 18px;
    height: 18px;
}

.reports-login-credentials {
    background-color: #f9fafb;
    border-color: #e5e7eb !important;
}

.reports-login-credentials-info-icon {
    width: 18px;
    height: 18px;
    color: var(--navy);
    flex-shrink: 0;
}

.reports-login-warning-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.reports-login-btn-back {
    background-color: white;
    border: 1px solid #d1d5db;
    color: #374151;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.reports-login-btn-back:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
    color: #111827;
}

.reports-login-btn-docs {
    background-color: var(--navy);
    border: 1px solid var(--navy);
    color: white;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.reports-login-btn-docs:hover {
    background-color: var(--navy-light);
    border-color: var(--navy-light);
    color: white;
}

/* Cards - same style as risk-engine */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.card-header {
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    font-weight: 600;
    color: #111827;
    border-radius: 8px 8px 0 0;
}

.card-body {
    padding: 20px;
}

/* Buttons - dark navy */
.btn-primary {
    background-color: var(--navy);
    border-color: var(--navy);
}

.btn-primary:hover {
    background-color: var(--navy-light);
    border-color: var(--navy-light);
}

.btn-outline-primary {
    border-color: var(--navy);
    color: var(--navy);
}

.btn-outline-primary:hover {
    background-color: var(--navy);
    border-color: var(--navy);
    color: white;
}

.btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 10px 20px;
    font-size: 14px;
    transition: all 0.2s;
}

/* Form controls */
.form-control, .form-select {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 14px;
    color: #111827;
}

.form-control:focus, .form-select:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px var(--navy-focus);
    outline: none;
}

/* Tables */
.table thead th {
    border-bottom: 2px solid #e5e7eb;
    color: #374151;
    font-weight: 600;
    font-size: 13px;
    padding: 12px;
}

.table tbody tr:hover {
    background-color: #f9fafb;
}

/* Badges */
.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 12px;
}

.bg-primary {
    background-color: var(--navy) !important;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: #111827;
    font-weight: 600;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

/* Links in main content */
a:not(.nav-link):not(.btn) {
    color: var(--navy);
}

a:not(.nav-link):not(.btn):hover {
    color: var(--navy-light);
}

/* Integration guide */
.integration-guide-toc {
    top: 1rem;
    z-index: 10;
}

.integration-guide-toc-list li {
    margin-bottom: 0.35rem;
}

.integration-guide-toc-list a {
    text-decoration: none;
    color: #374151;
}

.integration-guide-toc-list a:hover {
    color: var(--navy);
    text-decoration: underline;
}

.integration-guide-content section h2 {
    margin-bottom: 0.75rem;
}

.integration-guide-pre {
    background: #1e293b;
    color: #e2e8f0;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.integration-guide-pre code {
    color: inherit;
    background: transparent;
    padding: 0;
    font-size: inherit;
}

.integration-guide-diagram {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    overflow-x: auto;
}

.integration-guide-diagram svg {
    max-width: 100%;
    height: auto;
}

.integration-guide-download-card {
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
}
