@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800;900&display=swap');

body {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    background-attachment: fixed;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    margin: 0;
    overflow-x: hidden;
}

#wrapper, #page-wrapper {
    background: transparent !important;
}
#page-wrapper {
    padding: 0px;
}

/* Glassmorphism base class */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Clock & Date Widget */
.clockdate-wrapper {
    padding: 25px;
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

#clock {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

#clock span {
    font-size: 2rem;
    font-weight: 600;
    color: #00d2ff;
    margin-left: 5px;
}

#date {
    font-size: 1.5rem;
    font-weight: 400;
    color: #b0c4de;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Total Antrean */
.total-card {
    padding: 25px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #11998e, #38ef7d) !important;
    border: none;
}

.total-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    opacity: 0.9;
}

.total-card h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
}

/* List Poli */
#listPoli {
    /* max-height: 55vh;
    overflow-y: auto;
    padding-right: 5px; */
}
#listPoli-scroll-wrapper {
    overflow: visible;
}
#listPoli-scroll-wrapper::-webkit-scrollbar {
    display: none;
}
#listPoli::-webkit-scrollbar {
    display: none;
}

.poli-card {
    padding: 15px 20px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: none;
    border-left: 5px solid #00d2ff;
}

.poli-card h3.poli-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: #fff;
}

.poli-card h3.poli-count {
    font-size: 2.5rem;
    font-weight: 900;
    color: #00d2ff;
}

.poli-card h4.dokter-name {
    font-size: 1.2rem;
    color: #b0c4de;
    font-weight: 400;
}

/* Antrean List Layout */
.list-antrean {
    padding-right: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-content: flex-start;
}

.list-antrean > div {
    flex: 1 1 auto;
}

/* The Currently Called Card (col-md-12 equivalent) */
.list-antrean .current-call {
    flex: 1 1 100%;
    margin-bottom: 20px;
}

.list-antrean .current-call .card {
    background: linear-gradient(135deg, #02aab0, #00cdac) !important;
    border: none;
    box-shadow: 0 15px 35px rgba(0, 205, 172, 0.4);
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.list-antrean .current-call .card::before {
    content: 'MEMANGGIL';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 5px;
    color: rgba(255,255,255,0.7);
}

.list-antrean .current-call .card-title {
    font-size: 15rem;
    font-weight: 900;
    line-height: 1;
    margin: 40px 0;
    text-shadow: 0 10px 20px rgba(0,0,0,0.2);
    color: #fff;
}

.list-antrean .current-call .card-footer {
    background: rgba(0,0,0,0.15);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    border: none;
}

.list-antrean .current-call .card-footer h3 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
}

.list-antrean .current-call .card-footer h4 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #e0f7fa;
}

/* History Cards (col-md-4 equivalent) */
.list-antrean .history-call {
    flex: 0 0 calc(33.333% - 14px); /* 3 in a row with 20px gap */
    max-width: calc(33.333% - 14px);
}

.list-antrean .history-call .card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 20px;
    text-align: center;
}

.list-antrean .history-call .card-title {
    font-size: 5rem;
    font-weight: 800;
    color: #b0c4de;
    margin: 10px 0 20px 0;
}

.list-antrean .history-call .card-footer {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
}

.list-antrean .history-call .card-footer h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-antrean .history-call .card-footer h4 {
    font-size: 1.1rem;
    color: #8892b0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Animations */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(0, 205, 172, 0.7); }
    70% { box-shadow: 0 0 0 30px rgba(0, 205, 172, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 205, 172, 0); }
}

.pulse-anim .card {
    animation: pulseGlow 2s infinite;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.slide-in {
    animation: slideInUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Status Indicator Dot */
.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-dot.connected {
    background-color: #00e676;
    box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7);
    animation: pulseDotGreen 1.5s infinite;
}

.status-dot.disconnected {
    background-color: #ff3d00;
}

@keyframes pulseDotGreen {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 230, 118, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

/* Hide some default bootstrap things that mess up layout */
hr {
    display: none;
}
