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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

/* Navigation Bar */
.navbar {
    background: linear-gradient(135deg, #006fcf 0%, #0077dd 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.25;
    padding: 1rem 0;
}

.nav-brand-link {
    color: inherit;
    text-decoration: none;
}

.nav-brand-link:hover,
.nav-brand-link:focus-visible {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.25rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 1.5rem 0.5rem;
    display: block;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-link:hover,
.nav-link.active {
    opacity: 0.8;
    border-bottom: 3px solid white;
}

/* Dropdown */
.dropdown-toggle {
    align-items: center;
    background: none;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    cursor: pointer;
    display: flex;
    font: inherit;
    gap: 0.5rem;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.dropdown-menu {
    background: white;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    left: 0;
    list-style: none;
    min-width: 200px;
    padding: 0.5rem 0;
    position: absolute;
    top: 100%;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    display: block;
}

.dropdown:hover .dropdown-arrow,
.dropdown:focus-within .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-item {
    color: #333;
    display: block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    transition: background 0.3s;
}

.dropdown-item:hover,
.dropdown-item:focus-visible {
    background: #f5f7fa;
    color: #006fcf;
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: 0.3s;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 20px;
    min-height: calc(100vh - 200px);
}

/* Page Container */
.page-container {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.3s ease-in;
}

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

.page-title {
    font-size: 2rem;
    color: #006fcf;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #006fcf;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

/* World Clocks */
.world-clocks {
    padding: 0.25rem 0;
}

.home-page {
    min-height: 760px;
    padding: 2.5rem 3rem 3rem;
}

.clocks-map {
    aspect-ratio: 3 / 1;
    background: #fff url('../world-map-day-night.png') center / 100% 100% no-repeat;
    border-radius: 12px;
    min-height: 390px;
    position: relative;
}

.clock-card {
    min-width: 0;
    padding: 1rem 0.85rem 1.35rem;
    text-align: center;
    width: 145px;
}

.clocks-map .clock-card {
    left: var(--map-x);
    position: absolute;
    top: var(--map-y);
    transform: translate(-50%, -30%);
}

.clock-card h3 {
    color: #344054;
    font-size: 0.82rem;
    margin-bottom: 0.3rem;
}

.analog-clock {
    --hour-angle: 0deg;
    --minute-angle: 0deg;
    --second-angle: 0deg;
    background: radial-gradient(circle at center, #fff 60%, #edf6fe 100%);
    border: 2px solid #006fcf;
    border-radius: 50%;
    box-shadow: inset 0 0 0 3px white, 0 2px 6px rgba(0, 111, 207, 0.16);
    height: 104px;
    margin: 0.45rem auto 0.7rem;
    position: relative;
    width: 104px;
}

.clock-marker {
    color: #475467;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.54rem;
    font-weight: 700;
    height: 50%;
    left: 50%;
    position: absolute;
    top: 0;
    transform: translateX(-50%) rotate(var(--marker-angle));
    transform-origin: 50% 100%;
}

.clock-marker > span {
    display: block;
    line-height: 1;
    margin-top: 6px;
    transform: rotate(var(--marker-upright));
}

.clock-hand {
    background: #1d2939;
    border-radius: 999px;
    bottom: 50%;
    left: 50%;
    position: absolute;
    transform-origin: 50% 100%;
}

.hour-hand {
    height: 27px;
    transform: translateX(-50%) rotate(var(--hour-angle));
    width: 4px;
}

.minute-hand {
    height: 37px;
    transform: translateX(-50%) rotate(var(--minute-angle));
    width: 3px;
}

.second-hand {
    background: #e32636;
    height: 39px;
    transform: translateX(-50%) rotate(var(--second-angle));
    width: 1px;
}

.clock-pin {
    background: #006fcf;
    border: 2px solid white;
    border-radius: 50%;
    height: 9px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 9px;
}

.clock-time {
    color: #006fcf;
    display: block;
    font-size: clamp(1rem, 1.6vw, 1.35rem);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    white-space: nowrap;
}

.clock-date {
    color: #667085;
    font-size: 0.72rem;
    margin-top: 0.15rem;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-healthy {
    background: #d4edda;
    color: #155724;
}

.status-warning {
    background: #fff3cd;
    color: #856404;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.metric-card {
    background: linear-gradient(135deg, #006fcf 0%, #0077dd 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin-top: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

th {
    background: #f5f7fa;
    font-weight: 600;
    color: #006fcf;
}

tr:hover {
    background: #f8f9fa;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #006fcf;
    color: white;
}

.btn-primary:hover {
    background: #005ab3;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-danger {
    background: #c52233;
    color: white;
}

.btn-danger:hover {
    background: #9f1726;
    transform: translateY(-2px);
}

/* Environment Reservations */
.reservation-module {
    background: #f8fafc;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    margin: 0.5rem 0 1.5rem;
    padding: 1.25rem;
}

.reservation-module-title {
    color: #1d2939;
    font-size: 1.25rem;
}

.reservation-header {
    align-items: flex-start;
    display: flex;
    gap: 2rem;
    justify-content: space-between;
}

.reservation-header .page-subtitle {
    margin-bottom: 1rem;
}

.reservation-message {
    border-radius: 6px;
    display: none;
    margin: 0.5rem 0 1.25rem;
    padding: 0.75rem 1rem;
}

.reservation-message.visible {
    display: block;
}

.reservation-message.success {
    background: #e9f6ec;
    border: 1px solid #99d5a6;
    color: #155f2a;
}

.reservation-message.error,
.reservation-error {
    background: #fff4f4;
    border: 1px solid #f7c4c8;
    color: #9f1726;
}

.reservation-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    min-height: 260px;
}

.reservation-grid > .loading,
.reservation-grid > .reservation-error,
.reservation-grid > .reservation-empty {
    grid-column: 1 / -1;
}

.reservation-error {
    border-left: 4px solid #c52233;
    border-radius: 6px;
    height: fit-content;
    margin: 2rem auto;
    max-width: 680px;
    padding: 1rem;
    width: 100%;
}

.reservation-error p {
    margin-top: 0.25rem;
}

.reservation-empty {
    color: #667085;
    padding: 3rem;
    text-align: center;
}

.reservation-card {
    background: #f8f9fb;
    border: 1px solid #d0d5dd;
    border-left: 5px solid #2e9144;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    min-height: 290px;
    padding: 1.25rem;
}

.reservation-card.reserved {
    border-left-color: #f0a000;
}

.reservation-card-heading {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.reservation-card-heading h2 {
    color: #1d2939;
    font-size: 1.2rem;
}

.reservation-card-heading p,
.reservation-available-copy {
    color: #667085;
    font-size: 0.88rem;
}

.reservation-status {
    background: #e9f6ec;
    border-radius: 999px;
    color: #217a35;
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    text-transform: uppercase;
}

.reservation-card.reserved .reservation-status {
    background: #fff2cc;
    color: #805b00;
}

.reservation-details {
    display: grid;
    gap: 0.7rem;
    margin: 1.25rem 0;
}

.reservation-details div {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: 115px minmax(0, 1fr);
}

.reservation-details dt {
    color: #667085;
    font-size: 0.78rem;
    font-weight: 700;
}

.reservation-details dd {
    color: #1d2939;
    font-size: 0.85rem;
    overflow-wrap: anywhere;
}

.reservation-available-copy {
    margin: 1.5rem 0;
}

.reservation-action {
    margin-top: auto;
    text-align: center;
    width: 100%;
}

.reservation-dialog {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 16px 48px rgba(16, 24, 40, 0.24);
    color: #1d2939;
    max-width: min(620px, calc(100vw - 2rem));
    padding: 1.5rem;
    width: 100%;
}

.reservation-dialog::backdrop {
    background: rgba(16, 24, 40, 0.55);
}

.reservation-dialog-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.reservation-dialog-header h2 {
    font-size: 1.25rem;
}

.reservation-dialog-close {
    background: transparent;
    border: 0;
    color: #475467;
    cursor: pointer;
    font-size: 1.75rem;
    line-height: 1;
}

.reservation-form-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
}

.reservation-form-grid label,
.release-user-field {
    color: #344054;
    display: grid;
    font-size: 0.82rem;
    font-weight: 700;
    gap: 0.35rem;
}

.reservation-form-grid input,
.reservation-form-grid select,
.reservation-form-grid textarea,
.release-user-field input {
    border: 1px solid #98a2b3;
    border-radius: 4px;
    color: #1d2939;
    font: inherit;
    padding: 0.65rem 0.75rem;
}

.reservation-form-grid input:focus,
.reservation-form-grid select:focus,
.reservation-form-grid textarea:focus,
.release-user-field input:focus {
    border-color: #006fcf;
    box-shadow: 0 0 0 2px rgba(0, 111, 207, 0.18);
    outline: none;
}

.reservation-purpose-field {
    grid-column: 1 / -1;
}

.reservation-purpose-field span {
    color: #667085;
    font-weight: 400;
}

.release-environment-summary {
    color: #475467;
    margin-bottom: 1rem;
}

.reservation-dialog-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.build-deployment-action {
    margin-top: 0.85rem;
    width: 100%;
}

.build-reservation-note {
    color: #667085;
    font-size: 0.82rem;
    margin-top: 0.85rem;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-brand h1 {
        font-size: 1rem;
        max-width: 260px;
    }

    .hamburger {
        display: flex;
        flex-shrink: 0;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #006fcf;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu.active {
        max-height: 500px;
    }

    .nav-link {
        padding: 1rem;
        width: 100%;
    }

    .dropdown-menu {
        background: rgba(255, 255, 255, 0.1);
        box-shadow: none;
        position: static;
    }

    .dropdown-item {
        color: white;
        padding-left: 2rem;
    }

    .home-page {
        min-height: 0;
        padding: 1.5rem;
    }

    .clocks-map {
        aspect-ratio: auto;
        background-position: center top;
        background-size: auto 220px;
        display: grid;
        gap: 0.75rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-height: 0;
        padding-top: 190px;
    }

    .clocks-map .clock-card {
        left: auto;
        position: relative;
        top: auto;
        transform: none;
        width: auto;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 1.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1050px) {
    .home-page {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .clock-card {
        width: 130px;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #101828;
        color: #e4e7ec;
    }

    .page-container {
        background: #182230;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    }

    .clock-card h3,
    .clock-marker {
        color: #d0d5dd;
    }

    .clock-date {
        color: #98a2b3;
    }

    .analog-clock {
        background: radial-gradient(circle at center, #f8fafc 60%, #d8e8f6 100%);
    }

}

/* Loading Spinner */
.loading {
    text-align: center;
    padding: 3rem;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #006fcf;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Health Status */
.health-status {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.health-status pre {
    max-height: 400px;
    overflow-y: auto;
}

/* GitHub Build Health Matrix */
.build-health-header {
    margin-bottom: 0.75rem;
}

.build-health-header .page-title {
    margin-bottom: 0;
}

.build-health-context {
    align-items: center;
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.build-health-context .page-subtitle {
    margin-bottom: 0;
}

.build-health-context .page-subtitle a {
    color: #006fcf;
}

.build-health-actions {
    align-items: center;
    display: flex;
    gap: 1rem;
}

.build-health-actions > span {
    color: #667085;
    font-size: 0.8rem;
    white-space: nowrap;
}

.build-health-actions .btn:disabled {
    cursor: wait;
    opacity: 0.65;
}

.build-health-tabs {
    border-bottom: 1px solid #d9dde3;
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0;
}

.build-health-tab-panel {
    padding-top: 1rem;
}

.build-health-tab {
    background: transparent;
    border: 0;
    border-bottom: 3px solid transparent;
    color: #475467;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.7rem 1.25rem;
}

.build-health-tab:hover,
.build-health-tab:focus-visible {
    color: #006fcf;
}

.build-health-tab.active {
    border-bottom-color: #006fcf;
    color: #006fcf;
}

.build-matrix-region {
    min-height: 260px;
    overflow-x: auto;
}

.build-matrix {
    min-width: 1040px;
}

.build-matrix-columns,
.build-matrix-row {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(180px, 0.8fr) repeat(2, minmax(250px, 1fr));
}

.build-matrix.three-environments {
    min-width: 1320px;
}

.build-matrix.three-environments .build-matrix-columns,
.build-matrix.three-environments .build-matrix-row {
    grid-template-columns: minmax(180px, 0.8fr) repeat(3, minmax(250px, 1fr));
}

.build-matrix-columns {
    border-bottom: 1px solid #d9dde3;
    color: #344054;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.75rem 1rem;
    text-transform: uppercase;
}

.build-matrix-columns span:not(:first-child) {
    text-align: center;
}

.build-environment-header {
    align-items: center;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.build-matrix-row {
    border-bottom: 1px solid #e4e7ec;
    padding: 0.75rem 1rem;
}

.build-matrix-row:last-child {
    border-bottom: 0;
}

.build-target-name {
    padding: 0.5rem 0.25rem;
}

.build-target-name h2 {
    color: #1d2939;
    font-size: 1rem;
}

.build-target-name p {
    color: #475467;
    font-size: 0.82rem;
}

.build-environment-cell {
    min-width: 0;
}

.deployment-activity {
    border: 1px solid #d8dce2;
    border-radius: 6px;
    margin: 0.75rem 1rem 1rem;
    padding: 0.85rem 1rem;
}

.deployment-activity.idle {
    background: #f8f9fb;
    color: #475467;
}

.deployment-activity.active {
    background: #eef6ff;
    border-color: #8fc5f4;
}

.deployment-activity-heading {
    align-items: center;
    color: #005ea8;
    display: flex;
    gap: 0.5rem;
}

.deployment-activity-pulse {
    animation: deployment-pulse 1.6s ease-in-out infinite;
    background: #006fcf;
    border-radius: 50%;
    height: 0.65rem;
    width: 0.65rem;
}

.deployment-activity-list {
    display: grid;
    gap: 0.6rem;
    margin-top: 0.75rem;
}

.deployment-activity-item {
    background: white;
    border-radius: 5px;
    display: grid;
    gap: 0.65rem;
    grid-template-columns: minmax(150px, 1.3fr) 90px minmax(150px, 1fr) minmax(150px, 1fr);
    padding: 0.65rem 0.75rem;
}

.deployment-activity-item span {
    color: #1d2939;
    font-size: 0.78rem;
    min-width: 0;
}

.deployment-activity-item b {
    color: #667085;
    display: block;
    font-size: 0.62rem;
    margin-bottom: 0.15rem;
    text-transform: uppercase;
}

.deployment-activity-item code,
.build-deploying-detail code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    overflow-wrap: anywhere;
}

.build-card {
    background: #f8f9fb;
    border: 1px solid #d8dce2;
    border-left: 4px solid #f0a000;
    border-radius: 6px;
    min-height: 150px;
    padding: 0.85rem 0.95rem;
}

.build-card.success {
    border-left-color: #2e9144;
}

.build-card.failure {
    border-left-color: #e32636;
}

.build-card-heading {
    align-items: center;
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
}

.build-card-heading strong {
    color: #1d2939;
    font-size: 0.82rem;
}

.build-card-statuses {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.55rem;
}

.build-card-statuses span,
.build-card-statuses button {
    background: #fff2cc;
    border: 0;
    border-radius: 999px;
    color: #805b00;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    text-transform: uppercase;
}

.build-card-statuses .health-response-button {
    cursor: pointer;
    font-family: inherit;
}

.build-card-statuses .health-response-button:hover:not(:disabled),
.build-card-statuses .health-response-button:focus-visible {
    box-shadow: 0 0 0 2px #006fcf;
    outline: none;
}

.build-card-statuses .health-response-button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.build-card-statuses .deployment-status.success {
    background: #e9f6ec;
    color: #217a35;
}

.build-card-statuses .deployment-status.failure {
    background: #fdebec;
    color: #b4232e;
}

.build-card-statuses .service-health-status.success {
    background: #e9f6ec;
    color: #217a35;
}

.build-card-statuses .service-health-status.failure {
    background: #fdebec;
    color: #b4232e;
}

.build-card-statuses .service-health-status.not-available {
    background: #eef1f4;
    color: #475467;
}

.health-response-dialog {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 16px 48px rgba(16, 24, 40, 0.24);
    color: #1d2939;
    max-width: min(680px, calc(100vw - 2rem));
    padding: 1.25rem;
    width: 100%;
}

.health-response-dialog::backdrop {
    background: rgba(16, 24, 40, 0.55);
}

.health-response-dialog-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.health-response-dialog-header h2 {
    font-size: 1.25rem;
    margin: 0;
}

.health-dialog-close {
    background: transparent;
    border: 0;
    color: #475467;
    cursor: pointer;
    font-size: 1.75rem;
    line-height: 1;
}

.health-response-service {
    font-weight: 700;
    margin: 1rem 0 0.35rem;
}

.health-response-url {
    display: block;
    font-size: 0.8rem;
    overflow-wrap: anywhere;
}

.health-response-body {
    background: #101828;
    border-radius: 6px;
    color: #f2f4f7;
    margin: 1rem 0;
    max-height: 50vh;
    overflow: auto;
    padding: 1rem;
    white-space: pre-wrap;
}

.health-response-frame {
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    height: 180px;
    margin: 1rem 0;
    width: 100%;
}

.health-response-dialog-actions {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .reservation-header {
        align-items: stretch;
        flex-direction: column;
        gap: 0;
    }

    .reservation-header .btn {
        margin-bottom: 1rem;
        width: 100%;
    }

    .reservation-form-grid {
        grid-template-columns: 1fr;
    }

    .reservation-purpose-field {
        grid-column: auto;
    }

    .reservation-dialog-actions {
        flex-direction: column-reverse;
    }

    .reservation-dialog-actions .btn {
        text-align: center;
        width: 100%;
    }
}

.build-card-statuses .deployment-progress.active {
    animation: deployment-pulse 1.6s ease-in-out infinite;
    background: #e8f1ff;
    color: #005ea8;
}

.build-card-statuses .deployment-progress.inactive {
    background: #eef1f4;
    color: #475467;
}

@keyframes deployment-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.build-relative-time {
    color: #475467;
    font-size: 0.75rem;
    margin: 0.35rem 0 0.55rem;
}

.build-deploying-detail {
    color: #005ea8;
    font-size: 0.72rem;
    margin-top: 0.5rem;
}

.build-detail {
    align-items: center;
    display: grid;
    gap: 0.4rem;
    grid-template-columns: 62px minmax(0, 1fr);
    margin-top: 0.25rem;
}

.build-detail span {
    color: #475467;
    font-size: 0.65rem;
}

.build-detail code {
    color: #20242a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.68rem;
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.build-empty {
    color: #805b00;
    font-size: 0.78rem;
    font-style: italic;
    margin-top: 1rem;
}

.build-error {
    align-items: flex-start;
    background: #fff4f4;
    border: 1px solid #f7c4c8;
    border-left: 4px solid #e32636;
    border-radius: 6px;
    color: #b4232e;
    display: flex;
    gap: 0.75rem;
    margin: 2rem auto;
    max-width: 680px;
    padding: 1rem;
}

.build-error p {
    color: #667085;
    font-size: 0.82rem;
    margin-top: 0.2rem;
}

@media (max-width: 768px) {
    .build-health-context,
    .build-health-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .build-health-actions .btn {
        text-align: center;
        width: 100%;
    }

    .build-health-actions > span {
        white-space: normal;
    }

    .build-matrix {
        min-width: 0;
    }

    .build-matrix-columns {
        display: none;
    }

    .build-matrix-row {
        grid-template-columns: 1fr;
        padding: 1rem 0;
    }

    .deployment-activity-item {
        grid-template-columns: 1fr 1fr;
    }

    .build-target-name {
        border-bottom: 2px solid #006fcf;
    }

    .build-environment-cell::before {
        color: #344054;
        content: attr(data-environment);
        display: block;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        margin-bottom: 0.3rem;
    }

}

/* API Documentation Styles */
.documentation-page {
    max-width: 1400px;
}

.api-spec-list {
    margin-top: 2rem;
}

.api-repository-tabs,
.api-service-tabs,
.api-definition-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
}

.api-repository-tabs {
    border-bottom: 2px solid #d9e2ec;
}

.api-repository-tab,
.api-service-tab,
.api-definition-tab {
    background: transparent;
    border: 0;
    color: #52606d;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    white-space: nowrap;
}

.api-repository-tab {
    border-bottom: 3px solid transparent;
    font-size: 1.05rem;
    margin-bottom: -2px;
    padding: 0.9rem 1.25rem;
}

.api-repository-tab:hover,
.api-repository-tab:focus-visible,
.api-repository-tab.active {
    border-bottom-color: #006fcf;
    color: #006fcf;
}

.api-repository-panel {
    padding-top: 1.5rem;
}

.api-service-tabs {
    background: #eef4f8;
    border-radius: 8px;
    padding: 0.4rem;
}

.api-service-tab {
    border-radius: 6px;
    padding: 0.65rem 1rem;
}

.api-service-tab:hover,
.api-service-tab:focus-visible,
.api-service-tab.active {
    background: white;
    color: #006fcf;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.api-definition-tabs {
    border-bottom: 1px solid #d9e2ec;
    margin-top: 1rem;
}

.api-definition-tab {
    border-bottom: 3px solid transparent;
    padding: 0.75rem 1rem;
}

.api-definition-tab:hover,
.api-definition-tab:focus-visible,
.api-definition-tab.active {
    border-bottom-color: #006fcf;
    color: #006fcf;
}

.api-inline-panel {
    margin-top: 1.25rem;
}

.api-inline-title {
    color: #006fcf;
    font-size: 1.35rem;
    margin: 0 0 1rem;
}

.api-inline-doc {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: 400px;
    padding: 1rem;
}

.api-repository-panel[hidden],
.api-service-panel[hidden],
.api-inline-panel[hidden] {
    display: none;
}

.api-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.api-spec-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.api-spec-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.api-spec-card h3 {
    color: #006fcf;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.api-spec-version {
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.api-spec-description {
    color: #333;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.api-spec-card .btn {
    width: 100%;
}

.api-spec-empty,
.api-spec-error {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin-top: 1.5rem;
}

.api-spec-error {
    border-left: 4px solid #e74c3c;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
}

.api-spec-error span[aria-hidden="true"] {
    font-size: 2rem;
    color: #e74c3c;
}

.api-spec-error strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #e74c3c;
}

.api-doc-container {
    margin-top: 2rem;
}

.api-doc-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.api-doc-header h2 {
    color: #006fcf;
    font-size: 1.5rem;
    margin: 0;
}

#swaggerContainer {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: 400px;
}

/* Swagger UI overrides */
#swagger-ui,
.api-inline-doc {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
}

#swagger-ui .topbar,
.api-inline-doc .topbar {
    display: none;
}

/* Responsive adjustments for API docs */
@media (max-width: 768px) {
    .api-specs-grid {
        grid-template-columns: 1fr;
    }

    .api-doc-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .api-doc-header h2 {
        font-size: 1.25rem;
    }
}
