/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #1a1a1a;
    line-height: 1.4;
}

/* ── Login Page ── */
.login-body {
    background-color: #071c2e;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-wrapper {
    width: 100%;
    max-width: 540px;
}

.login-card {
    width: 100%;
    border-radius: 0.5rem;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.16);
    overflow: hidden;
}

.login-card-header {
    background-color: #0e365a;
    padding: 24px;
    text-align: center;
    border-radius: 0.5rem 0.5rem 0 0;
}

.login-badge {
    width: 70px;
    height: 70px;
}

.login-card-body {
    background-color: #fff;
    padding: 28px 32px;
}

.login-title {
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.form-control {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.5;
    color: #1a1a1a;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    transition: border-color 0.15s, box-shadow 0.15s;
    appearance: none;
}

.form-control:focus {
    border-color: #14599d;
    outline: 0;
    box-shadow: 0 0 0 0.15rem rgba(20, 89, 157, 0.35);
}

.form-control::placeholder {
    color: #999;
    opacity: 1;
}

.btn {
    display: inline-block;
    font-family: inherit;
    font-weight: 700;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    padding: 12px 20px;
    font-size: 1rem;
    line-height: 1.4;
    border-radius: 0.25rem;
    transition: background-color 0.15s, border-color 0.15s;
    text-decoration: none;
}

.btn-blue {
    color: #fff;
    background-color: #14599d;
    border: 1px solid #14599d;
    width: 100%;
}

.btn-blue:hover {
    background-color: #0e3f70;
    border-color: #0e3f70;
}

.error-message {
    color: #9a2222;
    background-color: #fff5f5;
    padding: 10px 14px;
    margin-bottom: 20px;
    border-radius: 0.25rem;
    text-align: center;
    border: 1px solid #9a2222;
    font-size: 0.875rem;
    font-weight: 600;
}

.login-footer {
    background-color: #fff;
    border-radius: 0.5rem;
    margin-top: 16px;
    padding: 12px;
    text-align: center;
    font-size: 0.75rem;
    color: #666;
    font-weight: 700;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.16);
    opacity: 0.8;
}

/* ── Dashboard Page (Looker) ── */
.dashboard-body {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.dashboard-header {
    background-color: #071c2e;
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: relative;
}

.dashboard-header .header-badge {
    width: 32px;
    height: 32px;
    margin-right: 10px;
}

.dashboard-header .header-title {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.dashboard-header .logout-link {
    position: absolute;
    right: 20px;
    color: #fff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 700;
    opacity: 0.8;
    transition: opacity 0.15s;
}

.dashboard-header .logout-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ── Account Toolbar ── */
.account-toolbar {
    background-color: #456A94;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    gap: 32px;
    flex-wrap: wrap;
}

.account-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-selector label {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    white-space: nowrap;
}

.account-selector select {
    padding: 6px 12px;
    font-size: 0.875rem;
    font-family: inherit;
    border: 1px solid #ccc;
    border-radius: 3px;
    background-color: #fff;
    color: #1a1a1a;
    min-width: 220px;
    cursor: pointer;
}

.account-selector select:focus {
    outline: none;
    border-color: #0e365a;
    box-shadow: 0 0 0 2px rgba(14, 54, 90, 0.3);
}

.account-details {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #fff;
    font-size: 0.875rem;
}

.account-detail-item strong {
    font-weight: 700;
    margin-right: 4px;
}

/* ── Iframe Container ── */
.iframe-container {
    width: 100%;
    height: calc(100vh - 48px - 46px);
    overflow: hidden;
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
