/**
 * Courses Registration Styles
 * 
 * @package DreampuzzleBookings
 * @since 1.1.0
 */

/* ========== Main Container ========== */
.dp-courses-registration-container {
    margin: 50px 0;
    padding: 0 20px;
}

/* ========== Header Section ========== */
.dp-courses-header {
    background: white;
    padding: 24px 32px;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border: 2px solid #e5e7eb;
}

.dp-courses-title {
    flex: 1;
    min-width: 250px;
}

.dp-courses-title h2 {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dp-courses-title h2 .dashicons {
    font-size: 36px;
    width: 36px;
    height: 36px;
    color: #667eea;
}

.dp-courses-user-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.dp-user-type-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}

.dp-user-type-badge.user-type-school {
    background: linear-gradient(135deg, #16a085 0%, #1abc9c 100%);
    box-shadow: 0 2px 8px rgba(22, 160, 133, 0.3);
}

.dp-user-type-badge.user-type-private {
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
    box-shadow: 0 2px 8px rgba(230, 126, 34, 0.3);
}

.dp-user-type-badge.user-type-both {
    background: linear-gradient(135deg, #553c9a 0%, #7e57c2 100%);
    box-shadow: 0 2px 8px rgba(85, 60, 154, 0.3);
}

.dp-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    transition: transform 0.2s;
}

.dp-user-avatar:hover {
    transform: scale(1.05);
}

.dp-user-name {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dp2-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.dp2-button .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.dp2-button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 2px solid transparent;
}

.dp2-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.dp2-button-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.dp2-button-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Keep button labels on one line while allowing the group to wrap */
.dp2-button {
    white-space: nowrap;
}

/* ========== Login Required Notice ========== */
.dp-courses-login-required {
    margin-top: 40px;
}

.dp-courses-login-required .dp-notice {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 32px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #93c5fd;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1);
}

.dp-courses-login-required .dp-notice .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #3b82f6;
    flex-shrink: 0;
    margin-top: 4px;
}

.dp-courses-login-required .dp-notice-content {
    flex: 1;
}

.dp-courses-login-required .dp-notice-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e40af;
    margin: 0 0 12px 0;
}

.dp-courses-login-required .dp-notice p {
    font-size: 16px;
    color: #1e3a8a;
    line-height: 1.6;
    margin: 8px 0;
}

.dp-courses-login-required .dp-notice-hint {
    font-size: 14px;
    color: #3b82f6;
    font-style: italic;
    margin-top: 16px;
}

/* ========== Bind Code Section ========== */
.dp-courses-bind-section {
    margin-bottom: 40px;
}

.dp-courses-bind-section .dp-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.dp-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #1e293b;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dp-section-title .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dp-help-text {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 24px;
}

.dp-bind-form {
    margin-top: 24px;
}

.dp-bind-form .dp-form-row {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.dp-bind-form .dp-form-group {
    flex: 1;
    min-width: 280px;
}

.dp-bind-form .dp-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
    font-size: 14px;
}

.dp-bind-form .dp-form-group label .required {
    color: #ef4444;
    margin-left: 2px;
}

.dp-bind-form .dp-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-align: center;
    transition: all 0.2s;
    font-family: 'Courier New', monospace;
}

.dp-bind-form .dp-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.dp-bind-form .dp-form-actions {
    flex-shrink: 0;
}

.dp-bind-form .dp-form-actions .dp-button {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

.dp-bind-message {
    margin-top: 20px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dp-field-hint {
    display: block;
    font-size: 13px;
    color: #9ca3af;
    margin-top: 6px;
    font-style: italic;
}

/* ========== Courses List ========== */
.dp-courses-list-section {
    margin-top: 48px;
}

.dp-main-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 32px;
    color: #1e293b;
    padding-bottom: 16px;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-image-slice: 1;
}

.dp-main-title .dashicons {
    font-size: 36px;
    width: 36px;
    height: 36px;
    color: #667eea;
}

.dp-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 28px;
    margin-top: 24px;
}

/* ========== Course Card ========== */
.dp-course-card {
    background: white;
    border-radius: 16px;
    border: 2px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    position: relative;
}

.dp-course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.dp-course-card:hover::before {
    transform: scaleX(1);
}

.dp-course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.dp-course-image {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    background-color: #f3f4f6;
    position: relative;
}

.dp-course-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}

.dp-course-content {
    padding: 24px;
}

.dp-course-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 14px;
    color: #1e293b;
    line-height: 1.3;
}

.dp-course-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #64748b;
}

.dp-course-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dp-course-meta .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #667eea;
    flex-shrink: 0;
}

.dp-course-description {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.dp-course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 2px solid #f3f4f6;
    margin-bottom: 20px;
}

.dp-course-cost {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dp-spots {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    background: #f3f4f6;
    padding: 4px 12px;
    border-radius: 12px;
}

.dp-course-actions {
    display: flex;
    gap: 12px;
}

.dp-course-actions .dp-button {
    flex: 1;
    justify-content: center;
    font-weight: 700;
}

/* ========== Empty State ========== */
.dp-empty-state {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f0ff 100%);
    border-radius: 16px;
    border: 2px dashed #c7d2fe;
}

.dp-empty-state .dashicons {
    font-size: 72px;
    width: 72px;
    height: 72px;
    color: #667eea;
    margin-bottom: 24px;
    opacity: 0.5;
}

.dp-empty-state p {
    font-size: 18px;
    color: #4b5563;
    margin: 12px 0;
    font-weight: 600;
}

.dp-empty-state .dp-help-text {
    font-size: 15px;
    color: #9ca3af;
    max-width: 500px;
    margin: 0 auto;
}

/* ========== Loading ========== */
.dp-loading {
    text-align: center;
    padding: 40px;
}

.dp-loading .spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== Registration Modal ========== */
.dp-registration-form-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dp-registration-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.dp-registration-modal {
    position: relative;
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.dp-close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.dp-close-modal:hover {
    background: #e5e7eb;
    transform: scale(1.1);
}

.dp-close-modal .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.dp-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 16px 16px 0 0;
}

.dp-modal-header h3 {
    margin: 0 0 20px;
    font-size: 24px;
    padding-right: 40px;
}

.dp-progress-bar {
    background: rgba(255, 255, 255, 0.2);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.dp-progress-fill {
    background: white;
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.dp-progress-text {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

/* ========== Form Steps ========== */
.dp-registration-form {
    padding: 30px;
}

.dp-form-step h4 {
    margin: 0 0 20px;
    font-size: 20px;
    color: #1e293b;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.dp-form-group {
    margin-bottom: 20px;
}

.dp-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #374151;
    font-size: 14px;
}

.dp-form-group .required {
    color: #ef4444;
    margin-left: 2px;
}

.dp-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
}

.dp-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.dp-input.dp-error {
    border-color: #ef4444;
}

.dp-input.dp-error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.dp-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* ========== Radio Group ========== */
.dp-radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.dp-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s;
}

.dp-radio-label:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.dp-radio-label input[type="radio"] {
    margin: 0;
}

.dp-radio-label input[type="radio"]:checked + span {
    color: #667eea;
    font-weight: 600;
}

/* ========== Checkbox ========== */
.dp-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
}

.dp-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.dp-checkbox-label a {
    color: #667eea;
    text-decoration: underline;
}

/* ========== Navigation Buttons ========== */
.dp-form-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.dp-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.dp-button .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.dp-button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.dp-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.dp-button-secondary {
    background: #f3f4f6;
    color: #374151;
}

.dp-button-secondary:hover {
    background: #e5e7eb;
}

.dp-button-disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

.dp-button.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* ========== Notice Messages ========== */
.dp-notice {
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    animation: slideDown 0.3s ease;
    border-left: 4px solid;
}

.dp-notice .dashicons {
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.dp-notice-error {
    background: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}

.dp-notice-error .dashicons {
    color: #ef4444;
}

.dp-notice-success {
    background: #f0fdf4;
    border-color: #10b981;
    color: #166534;
}

.dp-notice-success .dashicons {
    color: #10b981;
}

.dp-notice-info {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1e40af;
}

.dp-notice-info .dashicons {
    color: #3b82f6;
}

.dp-notice ul {
    margin: 0;
    padding-left: 20px;
}

/* ========== Cards ========== */
.dp-card {
    background: white;
    padding: 28px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.dp-help-text {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
}

/* ========== Login Prompt ========== */
.dp-courses-login-prompt {
    max-width: 600px;
    margin: 60px auto;
}

.dp-courses-login-prompt .dp-notice {
    padding: 32px;
    text-align: center;
}

.dp-courses-login-prompt .dp-notice p {
    margin: 12px 0;
}

.dp-courses-login-prompt .dp-notice strong {
    font-size: 20px;
    display: block;
    margin-bottom: 8px;
}

.dp-courses-login-prompt .dp-button {
    margin-top: 20px;
    padding: 14px 40px;
    font-size: 16px;
}

/* ========== Loading Overlay ========== */
.dp-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

.dp-loading-overlay .spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
}

/* ========== Body Lock ========== */
body.dp-modal-open {
    overflow: hidden;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .dp-courses-registration-container {
        margin: 30px 0;
        padding: 0 15px;
    }
    
    .dp-courses-header {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
    
    .dp-courses-title {
        width: 100%;
        text-align: center;
    }
    
    .dp-courses-title h2 {
        font-size: 26px;
        justify-content: center;
    }
    
    .dp-courses-user-info {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .dp-courses-login-required .dp-notice {
        flex-direction: column;
        padding: 24px;
        text-align: center;
    }
    
    .dp-courses-login-required .dp-notice .dashicons {
        margin: 0 auto 16px;
    }
    
    .dp-courses-login-required .dp-notice-title {
        font-size: 18px;
    }
    
    .dp-courses-login-required .dp-notice p {
        font-size: 15px;
    }
    
    .dp-user-name {
        max-width: 100%;
        text-align: center;
        width: 100%;
        order: 3;
    }
    
    .dp2-button {
        flex: 1;
        min-width: 140px;
        justify-content: center;
    }
    
    .dp-courses-grid {
        grid-template-columns: 1fr;
    }
    
    .dp-bind-form .dp-form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .dp-bind-form .dp-form-group {
        min-width: 100%;
    }
    
    .dp-bind-form .dp-form-actions {
        width: 100%;
    }
    
    .dp-bind-form .dp-form-actions button {
        width: 100%;
        padding: 16px;
    }
    
    .dp-registration-modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .dp-modal-header {
        padding: 24px 20px;
    }
    
    .dp-modal-header h3 {
        font-size: 20px;
    }
    
    .dp-registration-form {
        padding: 24px 20px;
    }
    
    .dp-form-row {
        grid-template-columns: 1fr;
    }
    
    .dp-radio-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .dp-radio-label {
        width: 100%;
    }
    
    .dp-form-navigation {
        flex-direction: column;
        gap: 12px;
    }
    
    .dp-button {
        width: 100%;
        justify-content: center;
    }
    
    .dp-main-title {
        font-size: 26px;
    }
    
    .dp-section-title {
        font-size: 20px;
    }
    
    .dp-courses-bind-section .dp-card {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .dp-courses-title h2 {
        font-size: 22px;
    }
    
    .dp-courses-title h2 .dashicons {
        font-size: 28px;
        width: 28px;
        height: 28px;
    }
    
    .dp-courses-user-info {
        gap: 10px;
    }
    
    .dp-user-avatar {
        width: 40px;
        height: 40px;
    }
    
    .dp-user-name {
        font-size: 14px;
    }
    
    .dp2-button {
        padding: 8px 16px;
        font-size: 13px;
        min-width: 120px;
    }
    
    .dp2-button .dashicons {
        font-size: 16px;
        width: 16px;
        height: 16px;
    }
    
    .dp-main-title {
        font-size: 24px;
    }
    
    .dp-course-title {
        font-size: 19px;
    }
    
    .dp-modal-header h3 {
        font-size: 18px;
    }
    
    .dp-course-cost {
        font-size: 20px;
    }
    
    .dp-empty-state {
        padding: 60px 20px;
    }
    
    .dp-empty-state .dashicons {
        font-size: 56px;
        width: 56px;
        height: 56px;
    }
}

/* ========== Enrollments List ========== */
.dp-course-enrollments-list {
    margin-top: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
}

.dp-enrollments-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.dp-enrollments-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

.dp-enrollments-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dp-enrollment-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.dp-enrollment-item:last-child {
    margin-bottom: 0;
}

.dp-enrollment-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.dp-enrollment-info {
    flex: 1;
}

.dp-enrollment-info strong {
    display: block;
    font-size: 15px;
    color: #1e293b;
    margin-bottom: 4px;
}

.dp-enrollment-cf {
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 8px;
}

.dp-enrollment-minor {
    display: inline-block;
    font-size: 12px;
    color: #f59e0b;
    font-weight: 600;
}

.dp-enrollment-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.dp-enrollment-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.dp-status-active {
    background: #d1fae5;
    color: #065f46;
}

.dp-status-withdrawn {
    background: #fee2e2;
    color: #991b1b;
}

.dp-status-completed {
    background: #dbeafe;
    color: #1e40af;
}

/* Status badges per ricevute */
.dp-status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dp-status-success {
    background: #d1fae5;
    color: #065f46;
}

.dp-status-warning {
    background: #fef3c7;
    color: #92400e;
}

.dp-status-error {
    background: #fee2e2;
    color: #991b1b;
}

.dp-enrollment-date {
    font-size: 12px;
    color: #94a3b8;
}

.dp-no-enrollments {
    text-align: center;
    padding: 32px;
    color: #64748b;
}

.dp-no-enrollments p {
    margin: 0;
    font-size: 15px;
}

.dp-button-secondary {
    background: white !important;
    color: #667eea !important;
    border: 2px solid #667eea !important;
}

.dp-button-secondary:hover {
    background: #667eea !important;
    color: white !important;
}

/* ===================================
   ENROLLMENT DETAIL MODAL
   =================================== */

.dp-enrollment-detail {
    padding: 20px 0;
}

.dp-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #e5e7eb;
}

.dp-detail-header h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: #1e293b;
}

.dp-detail-section {
    margin-bottom: 30px;
    padding: 25px;
    background: #f9fafb;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.dp-detail-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
    margin: 0 0 20px 0;
}

.dp-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.dp-detail-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dp-detail-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    font-weight: 600;
}

.dp-detail-value {
    font-size: 15px;
    color: #1e293b;
    font-weight: 600;
}

.dp-enrollment-item:hover {
    background: #f9fafb;
    border-color: #667eea;
    transform: translateX(4px);
}

.dp-enrollment-meta .dashicons {
    transition: transform 0.2s;
}

.dp-enrollment-item:hover .dashicons {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 768px) {
    .dp-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .dp-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* ========== Login Modal ========== */
.dp2-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
}

.dp2-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: #161528;
    display: flex;
    flex-direction: column;
}

.dp2-form-row {
    margin-bottom: 12px;
}

.dp2-form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #161528;
}

.dp2-form-row input[type="text"],
.dp2-form-row input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.dp2-notice {
    padding: 10px;
    border-radius: 8px;
}

.dp2-notice-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.dp2-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.dp2-modal-header h3 {
    margin: 0;
    color: #161528;
    font-size: 20px;
}

.dp2-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s ease;
}

.dp2-modal-close:hover {
    color: #333;
}

.dp2-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.dp2-modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    text-align: right;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    background-color: #fefefe;
    flex-shrink: 0;
}

/* ========== Toast Notifications ========== */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.dp-toast-notice {
    animation: slideInRight 0.3s ease;
}

.dp-toast-close:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}
