@import "tailwindcss";
@import "tailwindcss-animated";

@plugin "daisyui";


@plugin "daisyui/theme" {
    name: "pastel";
    default: true;
    prefersdark: false;
    color-scheme: "light";
    --color-base-100: oklch(100% 0 0);
    --color-base-200: oklch(98.462% 0.001 247.838);
    --color-base-300: oklch(92.462% 0.001 247.838);
    --color-base-content: oklch(20% 0 0);
    --color-primary: oklch(55% 0.135 66.442);
    --color-primary-content: oklch(98% 0.003 247.858);
    --color-secondary: oklch(45% 0.124 130.933);
    --color-secondary-content: oklch(98% 0.003 247.858);
    --color-accent: oklch(90% 0.093 164.15);
    --color-accent-content: oklch(39% 0.095 152.535);
    --color-neutral: oklch(55% 0.135 66.442);
    --color-neutral-content: oklch(92% 0.013 255.508);
    --color-info: oklch(38% 0.189 293.745);
    --color-info-content: oklch(98% 0.003 247.858);
    --color-success: oklch(79% 0.209 151.711);
    --color-success-content: oklch(98% 0.003 247.858);
    --color-warning: oklch(83% 0.128 66.29);
    --color-warning-content: oklch(55% 0.195 38.402);
    --color-error: oklch(64% 0.246 16.439);
    --color-error-content: oklch(98% 0.003 247.858);
    --radius-selector: 0.5rem;
    --radius-field: 0.5rem;
    --radius-box: 1rem;
    --size-selector: 0.25rem;
    --size-field: 0.1875rem;
    --border: 0.5px;
    --depth: 1;
    --noise: 1;
}






#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }


.overlay {
    position: relative;
    display: block; /* Add display:block directly instead of using d-block class */
    overflow: hidden;
    border-radius: 12px; /* or specific value like 0.625rem */
}

.overlay-wrapper {
    width: 100%;
    min-height: 175px;
    transition: transform 0.3s ease;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 12px; /* Inherit parent's border-radius */
}

.overlay-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    background-color: rgba(0, 0, 0, 0.25);
}

/* Hover effects */
.overlay:hover .overlay-layer {
    opacity: 1;
}

.overlay:hover .overlay-wrapper {
    transform: scale(1.03);
}

.bi-eye-fill {
    color: white;
    font-size: 2.5rem;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.overlay:hover .bi-eye-fill {
    transform: translateY(0);
}

/* Dashboard glass island navigation */
.dash-shell {
    min-height: 100vh;
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(255, 186, 120, 0.28), transparent 55%),
        radial-gradient(900px 500px at 100% 0%, rgba(140, 200, 180, 0.22), transparent 50%),
        linear-gradient(180deg, oklch(98.5% 0.01 90) 0%, oklch(96% 0.01 247) 100%);
}

.dash-glass {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.28));
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow:
        0 10px 40px rgba(40, 30, 20, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.75),
        inset 0 -1px 0 rgba(255, 255, 255, 0.2);
}

.dash-island {
    position: fixed;
    z-index: 50;
    gap: 0.35rem;
    padding: 0.45rem;
    border-radius: 9999px;
    align-items: center;
    justify-content: center;
}

.dash-island--side {
    flex-direction: column;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
}

.dash-island--bottom {
    flex-direction: row;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100vw - 1.5rem);
}

.dash-island,
.dash-island.dash-island--side,
.dash-island.dash-island--bottom {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.32));
    backdrop-filter: blur(24px) saturate(190%);
    -webkit-backdrop-filter: blur(24px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 12px 40px rgba(40, 30, 20, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.dash-island__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    color: oklch(35% 0.02 60);
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.dash-island__btn:hover {
    background: rgba(255, 255, 255, 0.55);
    transform: translateY(-1px);
}

.dash-island__btn--active {
    background: oklch(55% 0.135 66.442);
    color: white;
    box-shadow: 0 6px 16px rgba(180, 100, 40, 0.35);
}

.dash-island__menu {
    position: absolute;
    bottom: calc(100% + 0.65rem);
    left: 50%;
    transform: translateX(-50%);
    min-width: 11rem;
    padding: 0.4rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.45));
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 12px 36px rgba(40, 30, 20, 0.18);
    z-index: 60;
}

.dash-island__menu-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

.dash-island__menu-item:hover {
    background: rgba(255, 255, 255, 0.65);
}

.dash-island__menu-item--active {
    background: oklch(55% 0.135 66.442);
    color: white;
}

.dash-island__scrim {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: transparent;
}

.dash-main {
    padding-bottom: 6rem;
}

@media (min-width: 768px) {
    .dash-main {
        padding-bottom: 1.5rem;
        padding-right: 5.5rem;
    }
}

/* Admin live data board — no scroll on desktop */
.live-board {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.live-board__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
}

.live-board__title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
}

.live-board__sub {
    font-size: 0.7rem;
    opacity: 0.65;
}

.live-board__meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.live-board__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    min-height: 0;
}

.live-panel {
    display: flex;
    flex-direction: column;
    min-height: 16rem;
    border-radius: 1rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.32));
    backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 8px 28px rgba(40, 30, 20, 0.1);
    overflow: hidden;
}

.live-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem 0.35rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.live-panel__head h2 {
    font-size: 0.8rem;
    font-weight: 700;
}

.live-panel__body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 0.45rem 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.live-panel__chart {
    height: 7rem;
    flex-shrink: 0;
    padding: 0 0.35rem 0.25rem;
}

.live-empty {
    font-size: 0.75rem;
    opacity: 0.55;
    padding: 1rem 0.25rem;
    text-align: center;
}

.live-doctor-block__name {
    font-size: 0.7rem;
    font-weight: 700;
    opacity: 0.75;
    margin-bottom: 0.25rem;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    z-index: 1;
    padding: 0.15rem 0;
}

.live-appt-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.45rem;
}

.live-appt {
    display: flex;
    gap: 0.45rem;
    align-items: stretch;
    border-radius: 0.55rem;
    border: 1px solid;
    border-right-width: 3px;
    background: rgba(255, 255, 255, 0.55);
    overflow: hidden;
}

.live-appt__time {
    writing-mode: horizontal-tb;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    padding: 0.35rem 0.4rem;
    display: flex;
    align-items: center;
    min-width: 2.6rem;
    justify-content: center;
}

.live-appt__body {
    padding: 0.25rem 0.35rem 0.3rem 0;
    min-width: 0;
}

.live-appt__patient {
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-appt__meta,
.live-appt__date {
    font-size: 0.6rem;
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-open-row,
.live-room-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.live-open-row--manual {
    border-color: rgba(13, 148, 136, 0.35);
    background: rgba(13, 148, 136, 0.08);
}

@media (min-width: 1024px) {
    .live-board {
        height: calc(100vh - 5.5rem);
        max-height: calc(100vh - 5.5rem);
        overflow: hidden;
    }

    .live-board__grid {
        flex: 1;
        min-height: 0;
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr);
        height: 100%;
    }

    .live-panel {
        height: 100%;
        min-height: 0;
    }

    .live-panel__body {
        overflow: auto;
    }
}