/* Jadwal Dokter API v5.3.0 - Styles */

/* Search Container - Clean wrapper with background */
.jadwal-pencarian {
    margin: 30px 0;
    width: 100%;
    background: #f9fafb;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

/* Filter Form - Minimalist Design */
.jadwal-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-start;
    align-items: flex-end;
}

.jadwal-filter label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    color: #6b7280;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

/* Modern Minimalist Input & Select Styling - SAME HEIGHT */
.jadwal-filter select,
.jadwal-filter input[type="text"],
.jadwal-filter .form-select,
.jadwal-filter .form-input,
.jadwal-filter .btn-reset {
    height: 48px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    box-sizing: border-box;
    background: #ffffff;
    color: #111827;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    transition: all 0.2s ease;
    outline: none;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Specific styling for select to ensure same height */
.jadwal-filter select,
.jadwal-filter .form-select {
    height: 48px;
    padding: 0 16px;
    padding-right: 40px;
    /* Space for dropdown arrow */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23111827' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

/* Input styling */
.jadwal-filter input[type="text"],
.jadwal-filter .form-input {
    padding: 0 16px;
    background: #ffffff !important;
    background-color: #ffffff !important;
}

/* Button specific */
.jadwal-filter .btn-reset {
    padding: 0 24px;
}

.jadwal-filter select,
.jadwal-filter input[type="text"],
.jadwal-filter .form-select,
.jadwal-filter .form-input {
    min-width: 240px;
}

/* Focus State - Minimalist */
.jadwal-filter select:focus,
.jadwal-filter input[type="text"]:focus,
.jadwal-filter .form-select:focus,
.jadwal-filter .form-input:focus {
    border-color: #f0861d;
    box-shadow: 0 0 0 3px rgba(240, 134, 29, 0.1),
        0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Hover State */
.jadwal-filter select:hover,
.jadwal-filter input[type="text"]:hover,
.jadwal-filter .form-select:hover,
.jadwal-filter .form-input:hover {
    border-color: #d1d5db;
}

/* Placeholder Styling */
.jadwal-filter input[type="text"]::placeholder,
.jadwal-filter .form-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* Reset Button - Minimalist, SAME HEIGHT */
.jadwal-filter .btn-reset {
    cursor: pointer;
    font-weight: 600;
    background: #f0861d;
    color: #ffffff;
    border-color: #f0861d;
    letter-spacing: 0.025em;
    min-width: auto;
}

.jadwal-filter .btn-reset:hover {
    background: #e07818;
    border-color: #e07818;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.jadwal-filter .btn-reset:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .jadwal-pencarian {
        padding: 0 16px;
    }

    .jadwal-filter {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .jadwal-filter label {
        width: 100%;
    }

    .jadwal-filter select,
    .jadwal-filter input[type="text"],
    .jadwal-filter .btn-reset {
        width: 100%;
        min-width: auto;
    }
}

.jadwal-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
    width: 100%;
}

.jadwal-card {
    content-visibility: auto;
    contain-intrinsic-size: 0 320px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    text-align: center;
    background: #fff;
    max-width: 380px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.jadwal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Desktop: Force 3 columns max */
@media (min-width: 1024px) {
    .jadwal-container {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
    }

    .jadwal-card {
        max-width: none;
    }
}

/* Tablet: 2 columns */
@media (min-width: 640px) and (max-width: 1023px) {
    .jadwal-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 1 column */
@media (max-width: 639px) {
    .jadwal-container {
        grid-template-columns: 1fr;
    }
}

.jadwal-card img {
    width: 120px;
    height: 120px;
    min-width: 120px;
    min-height: 120px;
    max-width: 120px;
    max-height: 120px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    margin: 0 auto 16px auto;
    display: block;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 4px solid #ffffff;
    aspect-ratio: 1 / 1;

    background: #f1f5f9;
}

.jadwal-card h4 {
    margin: 12px 0 2px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}

.jadwal-card .klinik {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 400;
    margin: 0 0 10px 0;
    text-transform: capitalize;
    letter-spacing: normal;
}

.jadwal-card ul {
    list-style: none;
    padding-left: 0;
    margin: 10px 0 0 0;
    text-align: left;
    border-top: 1px solid #f3f4f6;
    padding-top: 10px;
}

.jadwal-card ul li {
    padding: 2px 0;
    font-size: 0.95rem;
    color: #374151;
    display: flex;
    align-items: center;
    line-height: 1.4;
}

.jadwal-card ul li::before {
    content: "📅 ";
    margin-right: 6px;
    font-size: 1em;
}

/* Cuti Section with CSS Icon */
.jadwal-card p.cuti {
    text-align: left;
    margin-top: 16px;
    padding: 0 0 0 12px;
    border-left: 4px solid #f97316;
    font-size: 0.95rem;
    color: #9a3412;
    line-height: 1.5;
    position: relative;
}

/* Add Pin Icon via CSS */
.jadwal-card p.cuti b::before {
    content: "📌";
    margin-right: 4px;
    font-size: 1em;
    /* Matches text size exactly */
    vertical-align: middle;
    display: inline-block;
}

.jadwal-card p.cuti b {
    font-weight: 700;
    font-size: inherit;
}

/* ==========================================================================
   Error & Empty State UI (Informatif dengan Call-to-Action)
   ========================================================================== */
.jadwal-error-wrapper {
    margin: 40px auto;
    max-width: 680px;
    padding: 0 15px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.jadwal-error-card {
    background: #ffffff;
    border: 1px solid #fed7aa;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
}

.jadwal-error-icon {
    width: 72px;
    height: 72px;
    background: #fff7ed;
    color: #ea580c;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffedd5;
}

.jadwal-error-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.jadwal-error-desc {
    font-size: 0.98rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 8px 0;
}

.jadwal-error-sub {
    font-size: 0.95rem;
    color: #374151;
    font-weight: 500;
    margin: 0 0 24px 0;
}

/* CTA Action Buttons */
.jadwal-error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.btn-cta-wa,
.btn-cta-phone,
.btn-cta-reload {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    line-height: 1.2;
}

/* WhatsApp CTA Button */
.btn-cta-wa {
    background: #25D366;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-cta-wa:hover {
    background: #20bd5a;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

/* Phone CTA Button */
.btn-cta-phone {
    background: #0284c7;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.btn-cta-phone:hover {
    background: #0369a1;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.4);
}

/* Reload Button */
.btn-cta-reload {
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #d1d5db;
    cursor: pointer;
}

.btn-cta-reload:hover {
    background: #e5e7eb;
    color: #1f2937;
    transform: translateY(-1px);
}

/* Admin Debug Notice */
.jadwal-admin-error-notice {
    margin-top: 25px;
    padding: 14px 18px;
    background: #fefce8;
    border: 1px solid #fef08a;
    border-radius: 8px;
    text-align: left;
    font-size: 0.85rem;
    color: #854d0e;
}

.admin-notice-badge {
    font-weight: 700;
    color: #a16207;
    margin-bottom: 6px;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.admin-notice-text {
    margin: 0;
    line-height: 1.5;
}

.admin-notice-text code {
    background: #fef9c3;
    padding: 2px 6px;
    border-radius: 4px;
    color: #b45309;
    font-family: monospace;
}

/* Empty Search State */
.jadwal-empty-search {
    grid-column: 1 / -1;
    width: 100%;
    background: #ffffff;
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    margin: 20px 0;
    box-sizing: border-box;
}

.jadwal-empty-search .empty-search-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.jadwal-empty-search h4 {
    font-size: 1.15rem;
    color: #1f2937;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.jadwal-empty-search p {
    font-size: 0.92rem;
    color: #6b7280;
    margin: 0;
}