/* General styling for the dashboard elements */
.msd-registration-section, .msd-dashboard-section {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.msd-registration-section h1, .msd-dashboard h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

/* Package Selection */
.msd-package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.msd-package-card {
    display: block; /* Make the whole card clickable */
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.msd-package-card:hover {
    border-color: #0073aa;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.msd-package-card input[type="radio"] {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
}

.msd-package-card input[type="radio"]:checked + .msd-package-details {
    background-color: #e6f7ff; /* Light blue background when selected */
    border-color: #0073aa; /* Stronger border for selected */
}

.msd-package-details h3 {
    margin-top: 0;
    color: #0073aa;
}

.msd-package-price {
    font-size: 1.8em;
    font-weight: bold;
    color: #28a745;
    margin: 10px 0;
}

.msd-package-description {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
}

.msd-package-hours {
    font-weight: bold;
    color: #555;
}

#proceed-to-info {
    display: block;
    width: fit-content;
    margin: 0 auto 30px;
    padding: 10px 30px;
    font-size: 1.1em;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#proceed-to-info:hover {
    background-color: #005f8e;
}

/* Registration Form */
.msd-registration-form .acf-form,
.msd-profile-edit-form .acf-form,
.msd-lesson-edit-form .acf-form {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.08);
}

.msd-registration-form .acf-field,
.msd-profile-edit-form .acf-field,
.msd-lesson-edit-form .acf-field {
    margin-bottom: 15px;
}

.msd-registration-form label,
.msd-profile-edit-form label,
.msd-lesson-edit-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

.msd-registration-form input[type="text"],
.msd-registration-form input[type="email"],
.msd-registration-form input[type="date"],
.msd-registration-form textarea,
.msd-profile-edit-form input[type="text"],
.msd-profile-edit-form input[type="email"],
.msd-profile-edit-form input[type="date"],
.msd-profile-edit-form textarea,
.msd-lesson-edit-form input[type="text"],
.msd-lesson-edit-form input[type="time"],
.msd-lesson-edit-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* Include padding and border in the element's total width */
}

/* ACF File/Image Upload specific styling */
.msd-registration-form .acf-image-uploader .acf-image-upload,
.msd-profile-edit-form .acf-image-uploader .acf-image-upload {
    display: block;
    padding: 10px;
    border: 2px dashed #ccc;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.msd-registration-form .acf-image-uploader .acf-image-upload:hover,
.msd-profile-edit-form .acf-image-uploader .acf-image-upload:hover {
    border-color: #0073aa;
}

.msd-registration-form .acf-image-uploader img,
.msd-profile-edit-form .acf-image-uploader img {
    max-width: 150px;
    height: auto;
    margin-top: 10px;
    border-radius: 4px;
}


/* Dashboard Sections */
.msd-profile-section,
.msd-package-section,
.msd-lessons-section {
    background-color: #fff;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.08);
}

.msd-profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 2px solid #eee;
}

.msd-profile-image-placeholder {
    width: 100px;
    height: 100px;
    background-color: #f0f0f0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}
.msd-profile-image-placeholder .dashicons {
    font-size: 50px;
    color: #ccc;
}

.msd-profile-display p {
    margin-bottom: 8px;
    font-size: 0.95em;
    color: #444;
}

.msd-success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 10px 15px;
    border-radius: 5px;
    margin-top: 15px;
    border: 1px solid #c3e6cb;
}

/* Lesson List */
.msd-lesson-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.msd-lesson-item {
    background-color: #fcfcfc;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.msd-lesson-item.msd-lesson-status-unassigned {
    border-left: 5px solid #ffc107; /* Warning yellow */
}
.msd-lesson-item.msd-lesson-status-scheduled {
    border-left: 5px solid #28a745; /* Success green */
}

.msd-lesson-item h4 {
    margin-top: 0;
    color: #0073aa;
    font-size: 1.2em;
}

.msd-lesson-item p {
    margin-bottom: 5px;
    color: #555;
    font-size: 0.9em;
}

.msd-lesson-item .no-time {
    color: #dc3545; /* Red for unassigned time */
    font-style: italic;
}

.msd-lesson-item .acf-form-submit input[type="submit"] {
    background-color: #0073aa;
    color: #fff;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.msd-lesson-item .acf-form-submit input[type="submit"]:hover {
    background-color: #005f8e;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .msd-package-grid {
        grid-template-columns: 1fr;
    }
}