/**
 * My Account Registrations Page - Elementor Integration
 * Uses Elementor global CSS variables for consistent theming
 */

/* Main Container */
.yangebup-registrations-dashboard {
    font-family: var(--e-global-typography-text-font-family, "Inter"), sans-serif;
    color: var(--e-global-color-text, #000000);
}

/* Main Heading */
.yangebup-registrations-dashboard h2 {
    font-family: var(--e-global-typography-primary-font-family, "Inter Tight"), sans-serif;
    font-size: var(--e-global-typography-secondary-font-size, 36px);
    font-weight: var(--e-global-typography-secondary-font-weight, 500);
    line-height: var(--e-global-typography-secondary-line-height, 48px);
    color: var(--e-global-color-primary, #000000);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--e-global-color-secondary, #FFCB05);
}

/* Section Headings */
.yangebup-registrations-dashboard h3 {
    font-family: var(--e-global-typography-secondary-font-family, "Inter Tight"), sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: var(--e-global-color-primary, #000000);
    margin: 30px 0 20px 0;
}

/* Child Cards */
.yangebup-registrations-dashboard h4 {
    font-family: var(--e-global-typography-secondary-font-family, "Inter Tight"), sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: var(--e-global-color-primary, #000000);
}

/* Messages and Alerts */
.yangebup-registrations-dashboard .woocommerce-message,
.yangebup-registrations-dashboard .woocommerce-info,
.yangebup-registrations-dashboard .woocommerce-error {
    background: white;
    border-left: 4px solid var(--e-global-color-secondary, #FFCB05);
    padding: 20px;
    margin-bottom: 25px;
    font-family: var(--e-global-typography-text-font-family, "Inter"), sans-serif;
    border-radius: 0;
}

.yangebup-registrations-dashboard .woocommerce-error {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.yangebup-registrations-dashboard .woocommerce-info {
    border-left-color: var(--e-global-color-accent, #C4C3BD);
    background: #f8f9fa;
}

/* Buttons */
.yangebup-registrations-dashboard .button,
.yangebup-registrations-dashboard button[type="submit"] {
    background: white;
    color: var(--e-global-color-primary, #000000);
    border: 2px solid var(--e-global-color-primary, #000000);
    padding: 12px 24px;
    font-family: var(--e-global-typography-accent-font-family, "Helvetica"), sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border-radius: 0;
}

.yangebup-registrations-dashboard .button:hover {
    background: var(--e-global-color-primary, #000000);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.yangebup-registrations-dashboard .button-primary,
.yangebup-registrations-dashboard .button.button-primary {
    background: var(--e-global-color-secondary, #FFCB05);
    color: var(--e-global-color-primary, #000000);
    border: 2px solid var(--e-global-color-secondary, #FFCB05);
}

.yangebup-registrations-dashboard .button-primary:hover,
.yangebup-registrations-dashboard .button.button-primary:hover {
    background: var(--e-global-color-primary, #000000);
    color: var(--e-global-color-secondary, #FFCB05);
    border-color: var(--e-global-color-primary, #000000);
}

.yangebup-registrations-dashboard .button-small {
    padding: 8px 16px;
    font-size: 12px;
}

/* Child Registration Cards */
.yangebup-children-cards > div {
    border: 1px solid var(--e-global-color-accent, #C4C3BD) !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    border-radius: 0 !important;
    transition: all 0.3s ease;
}

.yangebup-children-cards > div:hover {
    border-color: var(--e-global-color-secondary, #FFCB05) !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Status Badges */
.yangebup-registrations-dashboard span[style*="color: green"] {
    color: var(--e-global-color-primary, #000000) !important;
    background: #d4edda;
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: 500;
}

.yangebup-registrations-dashboard span[style*="color: orange"] {
    color: var(--e-global-color-primary, #000000) !important;
    background: var(--e-global-color-secondary, #FFCB05);
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: 500;
}

.yangebup-registrations-dashboard span[style*="color: red"] {
    color: white !important;
    background: #dc3545;
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: 500;
}

.yangebup-registrations-dashboard span[style*="color: blue"] {
    color: white !important;
    background: #17a2b8;
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: 500;
}

/* Outstanding Fees Section */
.yangebup-outstanding-fees {
    background: white;
    border: 1px solid var(--e-global-color-accent, #C4C3BD);
    border-left: 4px solid var(--e-global-color-secondary, #FFCB05);
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 0;
}

.yangebup-outstanding-fees h3 {
    margin-top: 0;
    color: var(--e-global-color-primary, #000000);
    font-family: var(--e-global-typography-secondary-font-family, "Inter Tight"), sans-serif;
}

/* Table Styling */
.yangebup-registrations-dashboard table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-family: var(--e-global-typography-text-font-family, "Inter"), sans-serif;
}

.yangebup-registrations-dashboard table th {
    background: var(--e-global-color-primary, #000000);
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.yangebup-registrations-dashboard table td {
    padding: 12px;
    border-bottom: 1px solid var(--e-global-color-accent, #C4C3BD);
}

.yangebup-registrations-dashboard table tr:hover {
    background: #f8f9fa;
}

/* Form Elements */
.yangebup-registrations-dashboard input[type="text"],
.yangebup-registrations-dashboard input[type="email"],
.yangebup-registrations-dashboard input[type="tel"],
.yangebup-registrations-dashboard select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--e-global-color-primary, #000000);
    background: white;
    font-family: var(--e-global-typography-text-font-family, "Inter"), sans-serif;
    font-size: 14px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.yangebup-registrations-dashboard input:focus,
.yangebup-registrations-dashboard select:focus {
    outline: none;
    border-color: var(--e-global-color-secondary, #FFCB05);
    box-shadow: 0 0 0 3px rgba(255, 203, 5, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
    .yangebup-registrations-dashboard h2 {
        font-size: 28px;
        line-height: 36px;
    }
    
    .yangebup-registrations-dashboard h3 {
        font-size: 20px;
    }
    
    .yangebup-children-cards > div {
        padding: 15px !important;
    }
    
    .yangebup-registrations-dashboard .button {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .yangebup-registrations-dashboard table {
        font-size: 12px;
    }
    
    .yangebup-registrations-dashboard table th,
    .yangebup-registrations-dashboard table td {
        padding: 8px;
    }
}

/* Loading State */
.yangebup-loading {
    text-align: center;
    padding: 40px;
    color: var(--e-global-color-text, #000000);
}

.yangebup-loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--e-global-color-accent, #C4C3BD);
    border-top-color: var(--e-global-color-secondary, #FFCB05);
    border-radius: 50%;
    animation: yangebup-spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes yangebup-spin {
    to { transform: rotate(360deg); }
}

/* Payment Status Colors */
.payment-status-paid {
    color: #28a745;
    font-weight: 600;
}

.payment-status-pending {
    color: var(--e-global-color-secondary, #FFCB05);
    font-weight: 600;
}

.payment-status-overdue {
    color: #dc3545;
    font-weight: 600;
}

/* Age Group Badge */
.age-group-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--e-global-color-accent, #C4C3BD);
    color: var(--e-global-color-primary, #000000);
    font-size: 12px;
    font-weight: 500;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Balance Due Notice */
.balance-due {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 15px;
    margin: 15px 0;
    border-radius: 3px;
    font-weight: 500;
}

/* Action Links */
.yangebup-registrations-dashboard a:not(.button) {
    color: var(--e-global-color-primary, #000000);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.yangebup-registrations-dashboard a:not(.button):hover {
    color: var(--e-global-color-secondary, #FFCB05);
}