﻿/* Set padding to keep content from hitting the edges */
.body-content {
    margin-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 100%;
}

.app-navbar {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(16px);
}

.page-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    border-radius: 20px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(37,99,235,0.10) 0%, rgba(124,58,237,0.10) 100%);
    border: 1px solid rgba(148,163,184,0.25);
    color: #0f172a;
}

.page-hero h1,
.page-hero h2 {
    font-weight: 800;
    margin-bottom: 6px;
    color: #0f172a;
}

.page-hero p {
    margin-bottom: 0;
    color: #64748b;
}

.glass-card,
.dashboard-card,
.report-frame-card,
.empty-state {
    border-radius: 20px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 15px 40px rgba(15,23,42,0.08);
}

.dashboard-card {
    background: #fff;
    box-shadow: 0 12px 35px rgba(15,23,42,0.08);
    border: 1px solid rgba(226,232,240,0.9);
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
    position: relative;
}

.dashboard-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    margin-bottom: 14px;
    background: rgba(37,99,235,0.10);
    font-size: 24px;
}

.dashboard-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
}

.dashboard-card .card-body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.dashboard-card .btn-modern,
.dashboard-card .btn-outline-modern {
    margin-top: auto;
}

.btn-modern,
.btn-primary {
    border-radius: 14px;
    font-weight: 700;
}

.btn-modern {
    color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    border: 0;
    box-shadow: 0 10px 25px rgba(37,99,235,0.22);
}

.btn-modern:hover,
.btn-modern:focus {
    color: #fff;
    background: linear-gradient(135deg, #1d4ed8 0%, #6d28d9 100%);
    box-shadow: 0 12px 28px rgba(37,99,235,0.28);
}

.btn-outline-modern {
    border-radius: 14px;
    border: 1px solid #cbd5e1;
    background: #fff;
    font-weight: 700;
}

.nav-link-button {
    background: none;
    border: 0;
    color: rgba(0,0,0,.55);
    padding: .5rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-link-button:hover {
    color: rgba(0,0,0,.75);
}

.dropdown-menu-lg {
    min-width: 280px;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid rgba(226,232,240,0.95);
    box-shadow: 0 18px 45px rgba(15,23,42,0.12);
}

.dropdown-menu-lg .dropdown-header {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
    padding: 6px 14px 4px;
}

.dropdown-menu-lg .dropdown-item {
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 600;
}

.dropdown-menu-lg .dropdown-item:hover,
.dropdown-menu-lg .dropdown-item:focus {
    background: rgba(37,99,235,0.09);
    color: #1d4ed8;
}

.navbar .dropdown-menu {
    z-index: 1050;
}

.viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 8px 0 14px;
    padding: 8px 2px 0;
}

.viewer-header h2 {
    margin: 0 0 4px;
    font-size: 1.8rem;
    font-weight: 800;
}

.viewer-header p {
    margin: 0;
    color: #64748b;
}

.empty-state {
    padding: 32px;
    text-align: center;
    background: rgba(255,255,255,0.8);
    border: 1px dashed #cbd5e1;
}

.report-frame-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 15px 40px rgba(15,23,42,0.08);
    border-radius: 20px;
}

.report-frame-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #e2e8f0;
}

.report-frame {
    width: 100%;
    height: calc(100vh - 180px);
    min-height: 720px;
    border: 0;
}

.powerbi-frame-shell {
    position: relative;
}

.powerbi-footer-mask {
    position: absolute;
    right: 46px;
    bottom: 0;
    width: 52px;
    height: 46px;
    background: linear-gradient(to top, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
    border-top-left-radius: 10px;
    z-index: 5;
    pointer-events: none;
}

.dashboard-form input,
.dashboard-form select,
.dashboard-form textarea {
    width: 100%;
    max-width: none;
}

.login-shell {
    min-height: calc(100vh - 140px);
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 520px);
    gap: 28px;
    align-items: stretch;
    padding: 18px 0 36px;
}

.login-brand-panel,
.login-card {
    border-radius: 28px;
    overflow: hidden;
}

.login-brand-panel {
    position: relative;
    padding: 40px;
    color: #fff;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 45%, #7c3aed 100%);
    box-shadow: 0 22px 50px rgba(37, 99, 235, 0.22);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-brand-panel::after {
    content: "";
    position: absolute;
    inset: auto -120px -140px auto;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.login-brand-badge {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.16);
    font-size: 30px;
    margin-bottom: 24px;
}

.login-brand-panel h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 12px;
}

.login-brand-panel p {
    max-width: 420px;
    color: rgba(255,255,255,0.88);
    margin-bottom: 28px;
}

.login-card {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 18px 45px rgba(15,23,42,0.10);
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-card-header {
    margin-bottom: 24px;
}

.login-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #2563eb;
    margin-bottom: 10px;
}

.login-card-header h2 {
    margin: 0 0 8px;
    font-size: 2rem;
    font-weight: 900;
}

.login-card-header p {
    margin: 0;
    color: #64748b;
}

.login-form .form-control {
    border-radius: 14px;
    border: 1px solid #dbe4f0;
    padding: 0.95rem 1rem;
}

.login-form .form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 0.2rem rgba(37,99,235,0.12);
}

.login-submit {
    width: 100%;
    padding: 0.9rem 1rem;
    align-self: stretch;
}

.login-form {
    display: flex;
    flex-direction: column;
}

.login-validation {
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .viewer-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .report-frame {
        height: calc(100vh - 220px);
        min-height: 620px;
    }

    .powerbi-footer-mask {
        right: 42px;
        width: 46px;
        height: 42px;
    }

    .login-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .login-brand-panel,
    .login-card {
        padding: 24px;
        border-radius: 22px;
    }
}
