/**
 * Dialog Component Styles
 */

.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1rem;
}

.dialog-overlay.active {
    opacity: 1;
    visibility: visible;
}

.dialog-container {
    background: #fff;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.dialog-overlay.active .dialog-container {
    transform: translateY(0);
}

.dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    background: linear-gradient(135deg, #000 0%, #333 100%);
}

.dialog-title {
    margin: 0;
    font-size: 1.5rem;
    color: #fff;
    font-weight: 700;
}

.dialog-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.dialog-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dialog-body {
    padding: 2rem 1.5rem;
}

.dialog-course-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.dialog-instructor-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #000;
    margin: 0 auto 1rem;
}

.dialog-instructor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dialog-detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: #333;
}

.dialog-detail i {
    color: #000;
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.dialog-detail strong {
    color: #000;
}

.dialog-description {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.dialog-description h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    color: #000;
}

.dialog-description p {
    margin: 0;
    line-height: 1.6;
    color: #555;
}

.dialog-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
    justify-content: center;
    flex-wrap: wrap;
}

.dialog-actions .button {
    flex: 1;
    min-width: 140px;
    text-align: center;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-adult {
    background-color: #4CAF50;
    color: white;
}

.badge-kid {
    background-color: #FF9800;
    color: white;
}

.badge-baby {
    background-color: #2196F3;
    color: white;
}

.badge-teenager {
    background-color: #9C27B0;
    color: white;
}

.badge-open {
    background-color: #000;
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .dialog-container {
        max-width: 95%;
        max-height: 85vh;
    }

    .dialog-title {
        font-size: 1.25rem;
    }

    .dialog-body {
        padding: 1.5rem 1rem;
    }

    .dialog-detail {
        font-size: 0.95rem;
    }

    .dialog-actions {
        flex-direction: column;
    }

    .dialog-actions .button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .dialog-header {
        padding: 1rem;
    }

    .dialog-title {
        font-size: 1.1rem;
    }

    .dialog-body {
        padding: 1.25rem 0.875rem;
    }

    .dialog-instructor-image {
        width: 80px;
        height: 80px;
    }

    .dialog-detail {
        font-size: 0.9rem;
    }
}
