/* Screen Display CSS */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(to bottom, #f6fbff 0%, #b3d2ee 100%);
    font-family: 'Inter', Arial, sans-serif;
}

/* Header Styles */
.logo {
    width: 90px;
    height: auto;
}

.hospital-name {
    font-size: 2.1rem;
    font-weight: 700;
    color: #2176ae;
    margin: 0;
}

.tagline {
    font-size: 1.15rem;
    color: #4a4a4a;
    font-style: italic;
    margin: 0;
}

.clock {
    font-size: 2.1rem;
    font-weight: 600;
    color: #2176ae;
}

.date {
    font-size: 1.15rem;
    color: #1a4a7a;
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    border-radius: 8px;
    padding: 0.7rem 2.5rem;
    margin-bottom: 1.2rem;
    letter-spacing: 0.04em;
    text-align: center;
}

.antrian-title {
    background: #2bb673;
    color: #fff;
}

.kamar-title {
    background: #2176ae;
    color: #fff;
    font-size: 1.5rem;
}

/* Antrian Cards */
.antrian-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px 0 rgba(44, 183, 115, 0.10);
    font-size: 1.45rem;
    font-weight: 600;
    color: #2176ae;
    padding: 1.1rem 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
    border: none;
}

.klinik-card {
    background: #2bb673;
    color: #fff;
    font-size: 1.45rem;
    font-weight: 600;
}

.antrian-label {
    font-size: 1.1rem;
    font-weight: 700;
    background: #2bb673;
    color: #fff;
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    margin-bottom: 0.7rem;
    letter-spacing: 0.04em;
    text-align: center;
}

.antrian-next-item, .antrian-missed-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px 0 rgba(44, 183, 115, 0.10);
    font-size: 1.15rem;
    font-weight: 600;
    color: #2176ae;
    padding: 0.7rem 1rem;
    text-align: center;
    margin-bottom: 0.5rem;
    border: none;
}

/* Table Styles */
.table-custom {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px 0 rgba(44, 183, 115, 0.10);
    overflow: hidden;
}

.table-custom th {
    background: #2176ae;
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    text-align: center;
    padding: 0.7rem 0.5rem;
    border: none;
}

.table-custom td {
    padding: 0.7rem 0.5rem;
    text-align: center;
    font-size: 1.05rem;
}

.table-custom tr:nth-child(even) {
    background: #f6fbff;
}

.status-tersedia {
    color: #2bb673;
    font-weight: 700;
}

.status-penuh {
    color: #e74c3c;
    font-weight: 700;
}

/* Klinik Gigi Spesialis Styles */
.klinik-container {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.klinik-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.klinik-header {
    background: #2bb673;
    color: #fff;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 700;
    min-height: 80px;
}

.klinik-number {
    background: #fff;
    color: #2bb673;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 900;
    flex-shrink: 0;
}

.klinik-body {
    padding: 1.5rem;
    padding-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    flex: 1;
}

.mb-20 {
    margin-bottom: 20px !important;
}

.doctor-image {
    width: 190px;
    height: 210px;
    border-radius: 10px;
    object-fit: cover;
    border: 3px solid #f0f8ff;
    flex-shrink: 0;
    background: #f8f9fa;
    display: block;
}

.doctor-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.current-queue {
    background: #2176ae;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.queue-sections {
    display: flex;
    gap: 1rem;
    flex: 1;
}

.queue-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.queue-section-title {
    background: #2bb673;
    color: #fff;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.queue-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.queue-item {
    background: #f0f8ff;
    border: 2px solid #2176ae;
    color: #2176ae;
    padding: 0.8rem 0.5rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doctor-name-section {
    background: #2bb673;
    color: #fff;
    padding: 1rem;
    text-align: center;
    font-weight: 700;
    font-size: 1.3rem;
    margin-top: auto;
}

/* Ensure equal height for all cards */
.row {
    display: flex;
    flex-wrap: wrap;
}

.row > [class*='col-'] {
    display: flex;
    flex-direction: column;
}

.row.g-4 {
    margin: 0;
}

.row.g-4 > * {
    padding: 0.75rem;
}

/* Link styling */
a.text-decoration-none {
    color: inherit;
    height: 100%;
}

a.text-decoration-none:hover {
    color: inherit;
}

.non-racikan {
    margin-right: 10px !important;
}

/* Grid improvements */
@media (min-width: 992px) {
    .klinik-body {
        min-height: auto;
    }
    
    .current-queue {
        font-size: 2.8rem;
    }
    
    .doctor-image {
        width: 190px;
        height: 210px;
    }
    
    .klinik-header {
        font-size: 1.4rem;
        min-height: 90px;
    }
}

@media (max-width: 991px) {
    .klinik-body {
        flex-direction: column;
        text-align: center;
        min-height: auto;
    }
    
    .doctor-image {
        width: 100px;
        height: 120px;
        margin: 0 auto 1rem;
    }
    
    .current-queue {
        font-size: 2rem;
    }
    
    .queue-sections {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Large Single Screen Layout */
.large-screen-container {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.large-klinik-header {
    background: #2bb673;
    color: #fff;
    padding: 1.2rem 2rem;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
}

.large-klinik-number {
    background: #fff;
    color: #2bb673;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 900;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.large-current-queue {
    background: #2176ae;
    color: #fff;
    padding: 1.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 15px rgba(33, 118, 174, 0.2);
}

.large-queue-sections {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.large-queue-section {
    flex: 1;
}

.large-queue-section-title {
    background: #2bb673;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    box-shadow: 0 2px 10px rgba(43, 182, 115, 0.2);
}

.large-queue-items {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.large-queue-item {
    background: #fff;
    border: 2px solid #2176ae;
    color: #2176ae;
    padding: 1.2rem 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
    font-size: 1.4rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.large-queue-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.large-doctor-section {
    background: #2bb673;
    color: #fff;
    padding: 1.2rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
    font-size: 1.4rem;
    margin-top: 1.5rem;
    box-shadow: 0 2px 10px rgba(43, 182, 115, 0.2);
}

/* Responsive adjustments for detail view */
@media (max-width: 991px) {
    .large-screen-container .row {
        flex-direction: column;
    }
    
    .large-current-queue {
        font-size: 3rem;
        padding: 1.2rem 1.5rem;
    }
    
    .large-klinik-header {
        font-size: 1.4rem;
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .large-klinik-number {
        width: 60px;
        height: 60px;
        font-size: 2.5rem;
    }
    
    .large-queue-sections {
        flex-direction: column;
        gap: 1rem;
    }
    
    .large-queue-section-title {
        font-size: 1.1rem;
    }
    
    .large-queue-item {
        font-size: 1.2rem;
        padding: 1rem;
    }
}

/* Image styling for detail view */
.large-screen-container .doctor-image {
    width: 100%;
    max-width: 300px;
    height: 350px;
    border-radius: 15px;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    display: block;
}

/* Farmasi Styles */
.farmasi-container {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.farmasi-header {
    background: #2bb673;
    color: #fff;
    padding: 1.2rem 2rem;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
}

.farmasi-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.farmasi-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    height: 100%;
}

.farmasi-section {
    display: flex;
    flex-direction: column;
}

.farmasi-section-title {
    background: #2bb673;
    color: #fff;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.farmasi-items {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.farmasi-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 0.6rem 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    min-height: 42px;
}

.farmasi-code {
    font-weight: 600;
    color: #2176ae;
}

.farmasi-status {
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.farmasi-status.racikan {
    background: #3498db;
    color: #fff;
}

.farmasi-status.non-racikan {
    background: #95a5a6;
    color: #fff;
}

/* Responsive adjustments for farmasi */
@media (max-width: 991px) {
    .farmasi-sections {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .farmasi-header {
        font-size: 1.4rem;
        padding: 1rem 1.5rem;
    }
    
    .farmasi-section-title {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }
    
    .farmasi-item {
        font-size: 0.8rem;
        padding: 0.5rem 0.6rem;
    }
}

.farmasi-klinik-view .klinik-container {
    margin-bottom: 1rem;
}

.farmasi-klinik-view .klinik-body {
    min-height: 220px;
    padding: 1rem;
}

.farmasi-klinik-view .doctor-image {
    width: 120px;
    height: 140px;
}

.farmasi-klinik-view .current-queue {
    font-size: 2.2rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.farmasi-klinik-view .queue-section-title {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
    margin-bottom: 0.6rem;
}

.farmasi-klinik-view .queue-item {
    font-size: 0.9rem;
    padding: 0.6rem 0.4rem;
    min-height: 40px;
}

.farmasi-klinik-view .doctor-name-section {
    font-size: 1.3rem;
    padding: 0.8rem;
}

/* Radiologi Styles */
.radiologi-container {
    background: #fff;
    border: 3px solid #e9ecef;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.radiologi-header {
    background: #2c7a2c;
    color: #fff;
    padding: 1.2rem 2rem;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
}

.radiologi-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.radiologi-current-section {
    text-align: center;
}

.radiologi-current-title {
    background: #2bb673;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.radiologi-current-queue {
    background: #2176ae;
    color: #fff;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 15px rgba(33, 118, 174, 0.2);
}

.radiologi-queue-section {
    flex: 1;
}

.radiologi-queue-title {
    background: #2bb673;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.radiologi-queue-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    height: 100%;
    align-content: start;
}

.radiologi-queue-item {
    background: #f8f9fa;
    border: 2px solid #2176ae;
    color: #2176ae;
    padding: 0.8rem 0.5rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    transition: all 0.3s ease;
}

.radiologi-queue-item:hover {
    background: #e3f2fd;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(33, 118, 174, 0.2);
}

.radiologi-queue-item:empty::after {
    content: '-';
    color: #6c757d;
}

/* Responsive adjustments for radiologi */
@media (max-width: 1199px) {
    .radiologi-queue-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .radiologi-current-queue {
        font-size: 2.5rem;
        padding: 1.2rem 1.5rem;
    }
}

@media (max-width: 991px) {
    .radiologi-queue-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    
    .radiologi-header {
        font-size: 1.4rem;
        padding: 1rem 1.5rem;
    }
    
    .radiologi-current-queue {
        font-size: 2rem;
        padding: 1rem 1.2rem;
    }
    
    .radiologi-queue-title {
        font-size: 1rem;
        padding: 0.6rem 1rem;
    }
    
    .radiologi-queue-item {
        font-size: 0.9rem;
        padding: 0.6rem 0.4rem;
        min-height: 45px;
    }
    
    .radiologi-body {
        padding: 1rem;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .radiologi-queue-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .radiologi-queue-item {
        font-size: 0.8rem;
        padding: 0.5rem 0.3rem;
        min-height: 40px;
    }
}