/* Styles pour le formulaire de profil EDD */

#edd_profile_editor_form {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
    overflow: hidden;
}

#edd_profile_editor_form fieldset {
    border: none;
    margin: 0;
    padding: 30px;
    border-bottom: 1px solid #f0f2f5;
}

#edd_profile_editor_form fieldset:last-child {
    border-bottom: none;
}

#edd_profile_editor_form legend {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
    padding: 15px 20px 10px 20px;
    border-bottom: 2px solid #3498db;
    width: calc(100% + 60px);
    margin-left: -30px;
    margin-top: -30px;
}

#edd_profile_personal_fieldset legend {
    border-bottom-color: #3498db;
    background: #f8fbff;
}

#edd_profile_address_fieldset legend {
    border-bottom-color: #f39c12;
    background: #fffbf0;
}

#edd_profile_password_fieldset legend {
    border-bottom-color: #e74c3c;
    background: #fff5f5;
}

#edd_profile_submit_fieldset legend {
    border-bottom-color: #27ae60;
    background: #f0fff4;
}

#edd_profile_editor_form label {
    display: block;
    font-weight: 500;
    color: #34495e;
    margin-bottom: 8px;
    font-size: 14px;
}

#edd_profile_editor_form p {
    margin-bottom: 20px;
}

#edd_profile_editor_form .edd-input,
#edd_profile_editor_form .edd-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fafbfc;
    box-sizing: border-box;
}

#edd_profile_editor_form .edd-input:focus,
#edd_profile_editor_form .edd-select:focus {
    outline: none;
    border-color: #3498db;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

#edd_profile_editor_form .edd-input:hover,
#edd_profile_editor_form .edd-select:hover {
    border-color: #bdc3c7;
}

#edd_address_country {
    padding: 12px 16px;
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    appearance: none;
}

#edd_profile_editor_form .required {
    border-left: 4px solid #e74c3c;
}

#edd_profile_personal_fieldset,
#edd_profile_address_fieldset,
#edd_profile_password_fieldset {
    background: #ffffff;
}

#edd_profile_submit_fieldset {
    background: #ffffff;
    text-align: center;
}

#edd_profile_editor_submit {
    padding: 16px 40px;
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

#edd_profile_editor_submit:hover {
    background: linear-gradient(135deg, #229954, #1e8449);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3);
}

#edd_profile_editor_submit:active {
    transform: translateY(0);
}

@media (min-width: 768px) {
    #edd_profile_first_name_wrap,
    #edd_profile_last_name_wrap {
        display: inline-block;
        width: 48%;
        vertical-align: top;
    }
    
    #edd_profile_first_name_wrap {
        margin-right: 4%;
    }
    
    #edd_profile_billing_address_city_wrap,
    #edd_profile_billing_address_postal_wrap {
        display: inline-block;
        width: 48%;
        vertical-align: top;
    }
    
    #edd_profile_billing_address_city_wrap {
        margin-right: 4%;
    }
    
    #edd_profile_password_wrap,
    #edd_profile_confirm_password_wrap {
        display: inline-block;
        width: 48%;
        vertical-align: top;
    }
    
    #edd_profile_password_wrap {
        margin-right: 4%;
    }
}

.dashboard-section {
    margin: 30px auto;
    max-width: 600px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
    padding: 30px;
}

.dashboard-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    display: flex;
    align-items: center;
}

.dashboard-section h3 .emoji {
    margin-right: 10px;
    width: 24px;
    height: 24px;
}

.edd-no-purchases,
.edd-no-downloads {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    color: #6c757d;
    font-size: 16px;
    font-style: italic;
    margin: 0;
}

.edd_purchase_receipt_products {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
}

.edd_purchase_receipt_product_name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
}

.edd_download_file {
    background: linear-gradient(135deg, #e3f2fd, #ffffff);
    border: 1px solid #bbdefb;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 8px 0;
    display: inline-block;
    text-decoration: none;
    color: #1976d2;
    font-weight: 500;
    transition: all 0.3s ease;
}

.edd_download_file:hover {
    background: linear-gradient(135deg, #bbdefb, #e3f2fd);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.2);
}

.edd-manage-license-back {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white !important;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.edd-manage-license-back:hover {
    background: linear-gradient(135deg, #5a67d8, #667eea);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

#edd_sl_license_keys {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid #f0f2f5;
}

#edd_sl_license_keys thead {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

#edd_sl_license_keys th {
    padding: 20px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.edd_sl_license_row {
    border-bottom: 1px solid #f0f2f5;
    transition: background-color 0.3s ease;
}

.edd_sl_license_row:hover {
    background-color: #f8f9fa;
}

.edd_sl_license_row:last-child {
    border-bottom: none;
}

#edd_sl_license_keys td {
    padding: 20px 15px;
    vertical-align: middle;
    border: none;
    color: #2c3e50;
    font-size: 14px;
}

#edd_sl_license_keys td:first-child {
    font-weight: 600;
    color: #667eea;
    font-size: 16px;
}

.edd_sl_license_status.edd-sl-inactive {
    background: #fff3cd;
    color: #856404;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid #ffeaa7;
}

.edd_sl_license_status.edd-sl-active {
    background: #d4edda;
    color: #155724;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid #c3e6cb;
}

.edd_sl_license_status.edd-sl-expired {
    background: #f8d7da;
    color: #721c24;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid #f5c6cb;
}

.view-key-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.edd_sl_show_key {
    display: inline-block;
    padding: 8px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.edd_sl_show_key:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.edd_sl_show_key img {
    width: 20px;
    height: 20px;
    display: block;
}

.edd_sl_license_key {
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 13px;
    color: #495057;
    max-width: 200px;
    word-break: break-all;
}

.edd_sl_limit_used {
    font-weight: 700;
    color: #667eea;
    font-size: 18px;
}

.edd_sl_limit_sep {
    color: #6c757d;
    margin: 0 4px;
}

.edd_sl_limit_max {
    color: #28a745;
    font-weight: 600;
}

#edd_sl_license_keys a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    background: #f8fbff;
    border: 2px solid #bbdefb;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-block;
}

#edd_sl_license_keys a:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.edd_sl_no_upgrades {
    color: #6c757d;
    font-style: italic;
    font-size: 13px;
}

.edd-sl-manage-license-header {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
}

.edd-sl-manage-license-details {
    background: linear-gradient(135deg, #f8fbff, #e3f2fd);
    border: 2px solid #bbdefb;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0 30px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.edd-sl-manage-license-key,
.edd-sl-manage-license-product {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #2c3e50;
}

.edd-sl-manage-license-key code {
    font-family: 'Courier New', monospace;
    background: #343a40;
    color: #ffc107;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    word-break: break-all;
}

.edd-sl-manage-license-product span {
    font-weight: 600;
    color: #667eea;
}

#edd_sl_license_sites {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 30px auto;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid #f0f2f5;
}

#edd_sl_license_sites thead {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

#edd_sl_license_sites th {
    padding: 20px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

#edd_sl_license_sites .edd_sl_license_row {
    border-bottom: 1px solid #f0f2f5;
    transition: background-color 0.3s ease;
}

#edd_sl_license_sites .edd_sl_license_row:hover {
    background-color: #f8f9fa;
}

#edd_sl_license_sites .edd_sl_license_row:last-child {
    border-bottom: none;
}

#edd_sl_license_sites td {
    padding: 20px 15px;
    vertical-align: middle;
    border: none;
    color: #2c3e50;
    font-size: 14px;
    text-align: center;
}

#edd_sl_license_sites td[colspan="2"] {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #6c757d;
    font-style: italic;
    padding: 40px 20px;
    text-align: center;
    position: relative;
}

#edd_sl_license_add_site_form {
    background: white;
    border: 2px solid #f0f2f5;
    border-radius: 12px;
    padding: 30px;
    margin: 30px auto;
    max-width: 600px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#edd_sl_license_add_site_form > div {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#edd_sl_license_add_site_form span {
    color: #2c3e50;
    font-size: 14px;
    line-height: 1.5;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

#edd_sl_license_add_site_form .edd-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fafbfc;
    box-sizing: border-box;
}

#edd_sl_license_add_site_form .edd-input:focus {
    outline: none;
    border-color: #667eea;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#edd_sl_license_add_site_form .edd-input:hover {
    border-color: #bdc3c7;
}

#edd_sl_license_add_site_form .button-primary {
    padding: 15px 30px;
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    min-width: 150px;
}

#edd_sl_license_add_site_form .button-primary:hover {
    background: linear-gradient(135deg, #229954, #1e8449);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3);
}

#edd_sl_license_add_site_form .button-primary:active {
    transform: translateY(0);
}

@media (max-width: 1024px) {
    #edd_sl_license_keys {
        font-size: 12px;
    }
    
    #edd_sl_license_keys th,
    #edd_sl_license_keys td {
        padding: 12px 8px;
    }
    
    .edd_sl_expiration,
    .edd_sl_upgrades {
        display: none;
    }
}

@media (max-width: 768px) {
    #edd_profile_editor_form {
        margin: 20px;
        border-radius: 8px;
    }
    
    #edd_profile_editor_form fieldset {
        padding: 20px;
    }
    
    #edd_profile_editor_form legend {
        font-size: 18px;
    }
    
    #edd_profile_editor_submit {
        width: 100%;
        min-width: auto;
    }
    
    .dashboard-section {
        margin: 20px;
        padding: 20px;
    }
    
    .dashboard-section h3 {
        font-size: 18px;
    }
    
    .edd-no-purchases,
    .edd-no-downloads {
        padding: 30px 15px;
        font-size: 14px;
    }
    
    #edd_sl_license_keys,
    #edd_sl_license_keys thead,
    #edd_sl_license_keys tbody,
    #edd_sl_license_keys th,
    #edd_sl_license_keys td,
    #edd_sl_license_keys tr {
        display: block;
    }
    
    #edd_sl_license_keys thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .edd_sl_license_row {
        background: white;
        border: 2px solid #f0f2f5;
        border-radius: 12px;
        margin-bottom: 20px;
        padding: 20px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    .edd_sl_license_row td {
        border: none;
        padding: 8px 0;
        padding-left: 50%;
        position: relative;
    }
    
    .edd_sl_license_row td:before {
        content: attr(data-label);
        position: absolute;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: 600;
        color: #667eea;
    }
    
    .edd_sl_license_row td:nth-child(1):before { content: "Produit:"; }
    .edd_sl_license_row td:nth-child(2):before { content: "Clé:"; }
    .edd_sl_license_row td:nth-child(3):before { content: "État:"; }
    .edd_sl_license_row td:nth-child(4):before { content: "Activations:"; }
    .edd_sl_license_row td:nth-child(5):before { content: "Expiration:"; }
    .edd_sl_license_row td:nth-child(6):before { content: "Gérer:"; }
    .edd_sl_license_row td:nth-child(7):before { content: "Mises à jour:"; }
    
    .edd_sl_license_row td:first-child {
        padding-left: 0;
        font-size: 18px;
        font-weight: 700;
        text-align: center;
        background: linear-gradient(135deg, #f8fbff, #e3f2fd);
        margin: -20px -20px 15px -20px;
        padding: 15px 20px;
        border-radius: 12px 12px 0 0;
    }
    
    .edd_sl_license_row td:first-child:before {
        display: none;
    }
    
    .edd-sl-manage-license-details {
        padding: 15px;
        gap: 10px;
    }
    
    .edd-sl-manage-license-key,
    .edd-sl-manage-license-product {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    #edd_sl_license_sites {
        font-size: 12px;
    }
    
    #edd_sl_license_sites th,
    #edd_sl_license_sites td {
        padding: 12px 8px;
    }
    
    #edd_sl_license_add_site_form {
        margin: 20px;
        padding: 20px;
    }
    
    #edd_sl_license_add_site_form .edd-input {
        font-size: 14px;
        padding: 12px 15px;
    }
    
    #edd_sl_license_add_site_form .button-primary {
        width: 100%;
        align-self: stretch;
    }
    
    .edd-sl-manage-license-header {
        font-size: 1.5rem;
    }
}

#edd_profile_editor_form,
.dashboard-section,
#edd_sl_license_keys,
#edd_sl_license_sites,
#edd_sl_license_add_site_form,
.edd-sl-manage-license-details {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}