/**
 * Junior Legends Member Profiles CSS
 */

/* Member Profiles Table */
.junior-legends-profiles-wrapper {
    margin-bottom: 40px;
}

.junior-legends-profiles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.junior-legends-profiles-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.junior-legends-profiles-table th,
.junior-legends-profiles-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.junior-legends-profiles-table th {
    background-color: #f8f8f8;
    font-weight: 600;
}

.junior-legends-profiles-table tr:hover {
    background-color: #f9f9f9;
}

.junior-legends-profiles-table a {
    text-decoration: none;
    color: #0073aa;
}

.junior-legends-profiles-table a:hover {
    color: #00a0d2;
}

/* Modal Styles */
.junior-legends-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.junior-legends-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    position: relative;
}

.junior-legends-modal h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #666;
}

/* Form Styles */
.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-row input[type="text"],
.form-row input[type="date"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-actions {
    margin-top: 25px;
    text-align: right;
}

/* Product Page Styles */
.junior-legends-profiles-selection {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f8f8;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.junior-legends-profiles-selection h4 {
    margin-top: 0;
    margin-bottom: 15px;
}

.profile-checkbox {
    margin-bottom: 10px;
}

.profile-checkbox label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.profile-checkbox input[type="checkbox"] {
    margin-right: 8px;
}

.junior-legends-profiles-notice {
    margin: 20px 0;
    padding: 10px 15px;
    background-color: #f8f8f8;
    border-left: 4px solid #0073aa;
}

/* WooCommerce Registration Form Customization */
.woocommerce form .form-row input.input-text {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Datepicker Customization */
.ui-datepicker {
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.ui-datepicker-header {
    background: #f8f8f8;
    padding: 5px;
    border-bottom: 1px solid #ddd;
    border-radius: 4px 4px 0 0;
}

.ui-datepicker-title {
    text-align: center;
    font-weight: bold;
}

.ui-datepicker-prev,
.ui-datepicker-next {
    cursor: pointer;
    position: absolute;
    top: 8px;
    width: 20px;
    height: 20px;
    text-indent: -9999px;
    background-repeat: no-repeat;
}

.ui-datepicker-prev {
    left: 5px;
}

.ui-datepicker-next {
    right: 5px;
}

.ui-datepicker-calendar th, 
.ui-datepicker-calendar td {
    padding: 3px;
    text-align: center;
}

.ui-datepicker-calendar a {
    display: block;
    padding: 3px;
    text-align: center;
    text-decoration: none;
    border-radius: 3px;
}

.ui-datepicker-calendar a:hover {
    background: #f0f0f0;
}

.ui-datepicker-calendar .ui-state-active {
    background: #0073aa;
    color: #fff;
}

/* Add these styles to your existing CSS file */

/* Age restriction info styling */
.age-restriction-info {
    margin-bottom: 15px;
    padding: 5px 10px;
    background-color: #f0f0f0;
    border-left: 3px solid #0073aa;
    font-size: 0.9em;
}

/* Admin styles for age restriction fields */
.woocommerce_options_panel .show-if-age-restriction {
    padding-left: 20px;
    margin-top: 5px;
    margin-bottom: 5px;
    border-left: 3px solid #f0f0f0;
}

/* Responsive Styles */
@media screen and (max-width: 600px) {
    .junior-legends-profiles-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .junior-legends-profiles-header button {
        margin-top: 10px;
    }
    
    .junior-legends-modal-content {
        margin: 5% auto;
        padding: 20px;
        width: 90%;
    }
}