/* Modern Modal Styles */
.guru-modal-modern {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    background: transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s ease;
    z-index: 1040;
    pointer-events: none;
}

.guru-modal-modern.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Override Bootstrap modal styles */
.guru-modal-modern.modal {
    background: transparent;
}

.guru-modal-modern.fade {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s ease;
}

.guru-modal-modern.fade.show {
    opacity: 1;
    visibility: visible;
}

.guru-modal-modern .modal-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s ease;
    pointer-events: none;
}

.guru-modal-modern.show .modal-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.guru-modal-modern.show .modal-backdrop {
    opacity: 1;
    visibility: visible;
}

.guru-modal-modern .modal-dialog {
    z-index: 1060;
}

.guru-modal-modern .modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.guru-modal-modern .modal-header {
    background: linear-gradient(135deg, #1c8e51 0%, #e9b619 100%);
    color: #fff;
    border-bottom: none;
    padding: 1.5rem;
    position: relative;
}

.guru-modal-modern .modal-title {
    font-weight: 600;
    font-size: 1.25rem;
    margin: 0;
}

.guru-modal-modern .modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.guru-modal-modern .modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.guru-modal-modern .modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

/* Guru Detail Styles */
.guru-detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
}

.guru-detail-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.guru-detail-info h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.guru-detail-info .badge {
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    background: linear-gradient(135deg, #1c8e51, #e9b619);
    color: #fff;
    border: none;
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
}

.guru__status {
    display: inline-block;
    padding: 0px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    /* margin-top: -3px; */
}

.status-aktif {
    background: #e8f5e9;
    color: #2e7d32;
    /* border: 1px solid #2e7d32; */
}

.status-tidak-aktif {
    background: #ffebee;
    color: #c62828;
    /* border: 1px solid #c62828; */
}

.guru-detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.guru-detail-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.guru-detail-card h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guru-detail-card p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: #2c3e50;
}

/* Star Rating Styles */
.star-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.star {
    width: 16px;
    height: 16px;
}

.star.full {
    color: #ffc107;
}

.star.empty {
    color: #e9ecef;
}

/* Responsive Design */
@media (max-width: 768px) {
    .guru-modal-modern .modal-dialog {
        margin: 1rem;
        max-width: none;
    }
    
    .guru-detail-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .guru-detail-meta {
        grid-template-columns: 1fr;
    }
    
    .guru-modal-modern .modal-body {
        padding: 1rem;
    }
}

/* Modal Animation */
.guru-modal-modern.show .modal-content {
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}