/**
 * My Account Styles for Site Raft Customer Account Features
 */

/* Website Profiles Wrapper */
.srca-website-profiles-wrapper {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.srca-website-profiles-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.srca-website-profiles-header h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 24px;
    color: #333;
}

.srca-website-profiles-header p {
    margin-bottom: 0;
    color: #666;
    font-size: 16px;
}

/* Incomplete Profiles */
.srca-incomplete-profiles {
    background: #fff8e5;
    border-left: 4px solid #ffb900;
    padding: 15px;
    margin-bottom: 30px;
}

.srca-incomplete-profiles h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
}

/* All Profiles */
.srca-all-profiles {
    margin-bottom: 30px;
}

.srca-profiles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.srca-profiles-header h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.srca-add-profile-button {
    background-color: #0073aa;
    color: #fff !important;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.3s ease;
}

.srca-add-profile-button:hover {
    background-color: #005f8b;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Profile Items */
.srca-profiles-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.srca-profile-item {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.srca-profile-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.srca-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.srca-profile-header h4 {
    margin: 0;
    font-size: 16px;
    word-break: break-word;
    color: #0073aa;
    font-weight: 600;
}

.srca-profile-status {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.srca-status-complete {
    background: #e7f7ea;
    color: #46b450;
}

.srca-status-pending {
    background: #fff8e5;
    color: #ffb900;
}

.srca-profile-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
}

.srca-profile-actions {
    display: flex;
    gap: 10px;
}

.srca-profile-actions .button {
    flex: 1;
    text-align: center;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.srca-profile-actions .button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.srca-view-services-button {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 15px;
    cursor: pointer;
    color: #0073aa;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.srca-view-services-button:hover {
    background: #f9f9f9;
    border-color: #0073aa;
    transform: translateY(-1px);
}

/* Modal */
.srca-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

.srca-modal-content {
    background-color: #fff;
    margin: 8% auto;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: srca-modal-appear 0.3s ease-out;
}

@keyframes srca-modal-appear {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.srca-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
}

.srca-modal-close:hover {
    color: #0073aa;
}

.srca-modal h3 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 22px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

/* Collapsible Sections */
.srca-form-section {
    margin-bottom: 25px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.srca-form-section:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.srca-section-header {
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e5e5e5;
}

.srca-section-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 20px;
    background: none;
    border: none;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.srca-section-toggle:hover {
    background-color: #f0f0f0;
}

.srca-section-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

/* Required indicator */
.srca-section-toggle .required {
    color: #e74c3c;
    margin-left: 5px;
}

/* Optional indicator */
.srca-section-toggle small {
    font-size: 12px;
    color: #666;
    font-weight: normal;
    margin-left: 5px;
}

/* Required vs Optional sections */
.srca-required-section .srca-section-header {
    border-left: 3px solid #0073aa;
}

.srca-optional-section .srca-section-header {
    border-left: 3px solid #ddd;
}

/* Toggle icon styling */
.srca-toggle-icon {
    position: relative;
    width: 16px;
    height: 16px;
    margin-left: 10px;
}

.srca-toggle-icon:before,
.srca-toggle-icon:after {
    content: '';
    position: absolute;
    background-color: #666;
    transition: all 0.3s ease;
}

.srca-toggle-icon:before {
    top: 7px;
    left: 0;
    width: 16px;
    height: 2px;
}

.srca-toggle-icon:after {
    top: 0;
    left: 7px;
    width: 2px;
    height: 16px;
}

.srca-section-toggle[aria-expanded="true"] .srca-toggle-icon:after {
    transform: rotate(90deg);
    opacity: 0;
}

/* Active section styling */
.srca-section-toggle[aria-expanded="true"] {
    background-color: #f0f7fb;
    color: #0073aa;
    border-bottom: 1px solid #e5e5e5;
}

.srca-section-content {
    padding: 20px;
    background-color: #fff;
    border-top: none;
}

/* Form Fields */
.srca-form-field {
    margin-bottom: 20px;
}

.srca-form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.srca-form-field input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.srca-form-field input:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
    outline: none;
}

/* Password Field Styling */
.srca-password-field {
    display: flex;
    align-items: center;
    position: relative;
}

.srca-password-field input {
    padding-right: 70px; /* Make room for the button */
}

.srca-password-toggle {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #0073aa;
    font-size: 14px;
    font-weight: 600;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.srca-password-toggle:hover {
    background-color: #f0f7fb;
}

.srca-password-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.srca-password-toggle.showing {
    color: #dc3232;
}

.srca-field-description {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
    margin-bottom: 0;
}

.srca-form-actions {
    margin-top: 30px;
    text-align: right;
}

.srca-form-actions .button {
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.srca-form-actions .button:hover {
    background-color: #005f8b;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Services Table */
.srca-services-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.srca-services-table th,
.srca-services-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.srca-services-table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.srca-services-table tr:last-child td {
    border-bottom: none;
}

.srca-services-table tr:hover td {
    background-color: #f9f9f9;
}

.srca-loading {
    text-align: center;
    padding: 30px;
    color: #666;
    font-size: 16px;
}

/* Notification Count */
.srca-notification-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0073aa;
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 12px;
    margin-left: 8px;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Success and Error Messages */
.srca-success-message,
.srca-error-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: 500;
}

.srca-success-message {
    background-color: #e7f7ea;
    border-left: 4px solid #46b450;
    color: #2e7d32;
}

.srca-error-message {
    background-color: #fbeaea;
    border-left: 4px solid #dc3232;
    color: #b71c1c;
}

/* Responsive */
@media (max-width: 768px) {
    .srca-website-profiles-wrapper {
        padding: 15px;
    }

    .srca-profiles-list {
        grid-template-columns: 1fr;
    }

    .srca-modal-content {
        margin: 15% auto;
        width: 90%;
        padding: 20px;
    }

    .srca-profiles-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .srca-profile-actions {
        flex-direction: column;
        gap: 10px;
    }

    .srca-form-actions {
        text-align: center;
    }

    .srca-form-actions .button {
        width: 100%;
    }
}
