.calendar-container{
    position: relative;
    margin: 50px auto;
    max-width: 500px;
}

td.details-control {
    background: url('../../assets/img/details_open.png') no-repeat center center;
    cursor: pointer;
}
tr.shown td.details-control {
    background: url('../../assets/img/details_close.png') no-repeat center center;
}

.teledentistry {
    background: #e4c8f8;
    min-height: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    margin-bottom: 30px;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    -ms-border-radius: 2px;
    border-radius: 2px;
}

.keterangan table {
    width: 100%;
}

.keterangan thead {
    font-size: 1.2em;
    font-weight: 600;
}

.keterangan td {
    /*padding: 2%;*/
}

.b-r {
    border-right: 1px solid #e7eaec;
}

.progress-bar {
    color: #333;
}

@media (min-width: 768px) {
  .modal-xl {
    width: 90%;
   max-width:1200px;
  }
}


/* Birthday Card Styles */
.birthday-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
}

.birthday-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s;
    pointer-events: none;
}

.birthday-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.3);
}

.birthday-card:hover::before {
    opacity: 1;
}

.birthday-card .card-body {
    padding: 25px 20px;
    position: relative;
    z-index: 1;
}

/* Header Image */
.birthday-header-image {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.birthday-header-image img {
    width: 250px;
    max-width: 90%;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.2));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Birthday Items */
.birthday-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 12px 15px;
    margin-bottom: 10px;
    color: #fff;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideIn 0.5s ease-out;
    animation-fill-mode: both;
}

.birthday-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.birthday-item-today {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    border-left: 4px solid #ffd700;
}

.birthday-item-upcoming {
    background: rgba(255, 255, 255, 0.1);
}

.birthday-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.birthday-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.birthday-countdown {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    backdrop-filter: blur(4px);
}

.birthday-countdown-today {
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    color: #333;
}

/* Divider */
.birthday-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    margin: 20px 0;
    position: relative;
}

.birthday-divider::before {
    content: '✨';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: inherit;
    padding: 0 10px;
    font-size: 14px;
}

/* Section Title */
.birthday-section-title {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.birthday-section-title i {
    font-size: 20px;
    opacity: 0.9;
}

/* Empty State */
.birthday-empty {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.birthday-empty i {
    font-size: 30px;
    margin-bottom: 10px;
    display: block;
    opacity: 0.6;
}

/* Badge */
.birthday-badge {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes confetti {
    0% { transform: translateY(0) rotate(0); opacity: 1; }
    100% { transform: translateY(100px) rotate(720deg); opacity: 0; }
}

/* Stagger animations */
.birthday-item:nth-child(1) { animation-delay: 0.1s; }
.birthday-item:nth-child(2) { animation-delay: 0.2s; }
.birthday-item:nth-child(3) { animation-delay: 0.3s; }
.birthday-item:nth-child(4) { animation-delay: 0.4s; }
.birthday-item:nth-child(5) { animation-delay: 0.5s; }

/* Responsive */
@media (max-width: 768px) {
    .birthday-card .card-body {
        padding: 20px 15px;
    }
    
    .birthday-header-image img {
        width: 200px;
    }
    
    .birthday-item {
        padding: 10px 12px;
    }
    
    .birthday-name {
        font-size: 13px;
    }
    
    .birthday-countdown {
        font-size: 11px;
        padding: 3px 8px;
    }
}

/* Confetti effect for today's birthdays */
.birthday-confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.birthday-confetti span {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ffd700;
    opacity: 0.6;
    animation: confetti 3s ease-out infinite;
}

/* Tooltip */
.birthday-tooltip {
    position: relative;
    cursor: help;
}

.birthday-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 10;
    margin-bottom: 5px;
}

/* Loading Skeleton */
.birthday-skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Leave Card Styles - Matching Birthday Card */
.leave-today-card {
    background: linear-gradient(135deg, #00b09b 0%, #96c93d 100%);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
}

.leave-today-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s;
    pointer-events: none;
}

.leave-today-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.3);
}

.leave-today-card:hover::before {
    opacity: 1;
}

.leave-today-card .card-body {
    padding: 25px 20px;
    position: relative;
    z-index: 1;
}

/* Header Image */
.leave-image {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.leave-image img {
    width: 233px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.2));
    animation: floatLeave 3s ease-in-out infinite;
}

@keyframes floatLeave {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Title */
.leave-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    margin-bottom: 15px;
    /*padding-bottom: 15px;*/
    /*border-bottom: 2px solid rgba(255, 255, 255, 0.2);*/
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 8px;
}

.leave-title::before {
    content: '🌴';
    font-size: 24px;
}

/* Leave Items */
.leave-name {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 12px 15px;
    margin-bottom: 10px;
    color: #fff;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideInLeave 0.5s ease-out;
    animation-fill-mode: both;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.leave-name:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(5px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.leave-name.tomorrow {
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid rgba(255, 255, 255, 0.5);
}

.leave-name.tomorrow:hover {
    background: rgba(255, 255, 255, 0.2);
}

.leave-name::before {
    content: '👤';
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.leave-name.tomorrow::before {
    content: '⏰';
}

/* Divider */
.leave-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    margin: 20px 0;
    position: relative;
}

.leave-divider::before {
    content: '✨';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: inherit;
    padding: 0 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* Subtitle */
.leave-subtitle {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.leave-subtitle::before {
    content: '📋';
    font-size: 20px;
    opacity: 0.9;
}

/* Empty State */
.leave-empty {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    margin-bottom: 10px;
    font-size: 14px;
    font-style: italic;
    transition: all 0.3s ease;
}

.leave-empty:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.leave-empty::before {
    content: '😴';
    display: block;
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.8;
    animation: snooze 2s ease-in-out infinite;
}

@keyframes snooze {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Animations */
@keyframes slideInLeave {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Floating leaves effect */
.leave-confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.leave-confetti span {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    opacity: 0.6;
    animation: floatLeaf 4s linear infinite;
}

@keyframes floatLeaf {
    0% {
        transform: translateY(100%) rotate(0deg);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100%) rotate(720deg);
        opacity: 0;
    }
}

/* Stagger animations */
.leave-name:nth-child(1) { animation-delay: 0.1s; }
.leave-name:nth-child(2) { animation-delay: 0.2s; }
.leave-name:nth-child(3) { animation-delay: 0.3s; }
.leave-name:nth-child(4) { animation-delay: 0.4s; }
.leave-name:nth-child(5) { animation-delay: 0.5s; }

/* Tooltip */
.leave-name {
    position: relative;
    cursor: help;
}

.leave-name[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 10;
    margin-bottom: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
}

.leave-name[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
    margin-bottom: -2px;
}

/* Responsive */
@media (max-width: 768px) {
    .leave-today-card .card-body {
        padding: 20px 15px;
    }
    
    .leave-title {
        font-size: 18px;
    }
    
    .leave-image img {
        width: 60px;
        height: 60px;
    }
    
    .leave-name {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .leave-name::before {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}

/* Loading Skeleton */
.leave-skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 12px;
    height: 45px;
    margin-bottom: 10px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Badge styles (optional - not showing count) */
.leave-badge {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
