/* Account Dashboard Container */
.subscription-system-account-container {
    display: flex;
    gap: 30px;
    margin: 40px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    width: 100%;
    max-width: 100%;
}

/* Sidebar Styles */
.account-sidebar {
    flex: 0 0 350px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.account-sidebar:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #4a90e2, #5cb85c);
}

.account-header {
    padding: 25px 20px;
    border-bottom: 1px solid #f0f0f0;
    background-color: #f9fbfd;
}

.account-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.account-profile {
    padding: 25px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #f0f0f0;
    background-color: #f9fbfd;
}

.profile-avatar {
    position: relative;
    display: inline-block;
}

.profile-avatar img {
    border-radius: 50%;
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.avatar-upload {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: #4a90e2;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.profile-avatar:hover .avatar-upload {
    opacity: 1;
}

.avatar-edit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.avatar-edit i {
    color: white;
    font-size: 14px;
}

/* Profile image upload progress */
.avatar-upload-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    display: none;
}

.profile-avatar.uploading .avatar-upload-progress {
    display: flex;
}

.profile-avatar.uploading img {
    filter: blur(2px);
}

.profile-info h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.profile-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
    word-break: break-word;
}

.account-navigation {
    padding: 15px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
    border-left: 3px solid transparent;
    margin: 2px 0;
}

.nav-item:hover {
    background-color: #f5f9ff;
    color: #4a90e2;
}

.nav-item.active {
    background-color: #f0f7ff;
    color: #4a90e2;
    border-left-color: #4a90e2;
    font-weight: 500;
}

.nav-item i {
    margin-right: 12px;
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* Content Area Styles */
.account-content {
    flex: 1;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 35px;
    min-height: 600px;
}

.account-tab-content h2 {
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 28px;
    color: #333;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.account-tab-content h2:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, #4a90e2, #5cb85c);
}

/* Account Overview Styles */
.account-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: #f9fbfd;
    padding: 25px;
    border-radius: 10px;
}

.detail-row {
    display: flex;
    border-bottom: 1px solid #eef2f7;
    padding-bottom: 15px;
}

.detail-label {
    flex: 0 0 180px;
    font-weight: 500;
    color: #555;
    font-size: 16px;
}

.detail-value {
    flex: 1;
    color: #333;
    font-size: 16px;
}

/* Form Styles for Account Tabs */
.subscription-system-form {
    max-width: 100%;
    background-color: #f9fbfd;
    padding: 30px;
    border-radius: 10px;
}

.form-row {
    margin-bottom: 20px;
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.three-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #444;
    font-size: 15px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    transition: all 0.3s ease;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.form-control:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    outline: none;
}

.password-field-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #777;
    font-size: 18px;
    user-select: none;
}

.subscription-system-submit-btn {
    display: inline-block;
    background: linear-gradient(90deg, #4a90e2, #357ab8);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(74, 144, 226, 0.2);
}

.subscription-system-submit-btn:hover {
    background: linear-gradient(90deg, #357ab8, #2a6496);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(74, 144, 226, 0.3);
}

/* Subscription Tab Styles */
.no-subscriptions, .no-orders {
    text-align: center;
    padding: 50px 30px;
    background-color: #f9fbfd;
    border-radius: 10px;
    margin-top: 20px;
    border: 1px dashed #ddd;
}

.no-subscriptions p, .no-orders p {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.subscription-system-btn {
    display: inline-block;
    background: linear-gradient(90deg, #4a90e2, #357ab8);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(74, 144, 226, 0.2);
}

.subscription-system-btn:hover {
    background: linear-gradient(90deg, #357ab8, #2a6496);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(74, 144, 226, 0.3);
    color: white;
}

/* Orders Tab Styles */
.orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.orders-table th, .orders-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.orders-table th {
    background-color: #f5f9ff;
    font-weight: 600;
    color: #444;
    font-size: 15px;
}

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

.orders-table tr:hover td {
    background-color: #f9fbfd;
}

/* Message Styles */
.subscription-system-message-container {
    margin-bottom: 20px;
}

.subscription-system-message {
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.subscription-system-message.success {
    background-color: #e7f7ee;
    color: #28a745;
    border-left: 4px solid #28a745;
}

.subscription-system-message.error {
    background-color: #feeeed;
    color: #dc3545;
    border-left: 4px solid #dc3545;
}

.subscription-system-message.info {
    background-color: #e7f3ff;
    color: #0d6efd;
    border-left: 4px solid #0d6efd;
}

.subscription-system-message:before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    background-size: contain;
    background-repeat: no-repeat;
}

.subscription-system-message.success:before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path d="M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm-.997-4L6.76 11.757l1.414-1.414 2.829 2.829 5.656-5.657 1.415 1.414L11.003 16z" fill="%2328a745"/></svg>');
}

.subscription-system-message.error:before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path d="M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm-1-5h2v2h-2v-2zm0-8h2v6h-2V7z" fill="%23dc3545"/></svg>');
}

.subscription-system-message.info:before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path d="M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zM11 7h2v2h-2V7zm0 4h2v6h-2v-6z" fill="%230d6efd"/></svg>');
}

/* Animation Effects */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.account-tab-content {
    animation: fadeIn 0.4s ease-out;
}

/* Responsive Styles */
@media (max-width: 1100px) {
    .subscription-system-account-container {
        flex-direction: column;
    }
    
    .account-sidebar {
        flex: 0 0 auto;
        margin-bottom: 30px;
    }
    
    .account-content {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .two-columns, .three-columns {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .account-content {
        padding: 20px;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .detail-label {
        flex: 0 0 auto;
        margin-bottom: 5px;
    }
    
    .subscription-system-form {
        padding: 20px;
    }
    
    .account-tab-content h2 {
        font-size: 24px;
    }
}

/* Make sure dashicons are loaded */
.dashicons {
    font-family: dashicons !important;
    display: inline-block;
    line-height: 1;
    font-weight: 400;
    font-style: normal;
    speak: never;
    text-decoration: inherit;
    text-transform: none;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 20px;
    height: 20px;
    font-size: 20px;
    vertical-align: top;
    text-align: center;
    transition: color .1s ease-in;
}

/* Full-width overrides */
.entry-content .subscription-system-account-container,
.site-content .subscription-system-account-container,
.content-area .subscription-system-account-container,
#main .subscription-system-account-container,
#content .subscription-system-account-container {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Ensure the container doesn't get squeezed by theme styles */
.entry-content,
.site-content,
.content-area,
#main,
#content {
    max-width: 100% !important;
}

/* Billing Information Form Specific Styles */
#billing-info-form .form-group {
    margin-bottom: 20px;
}

#billing-info-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

#billing-info-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
    box-sizing: border-box;
    height: auto;
    line-height: normal;
}

#billing-info-form .form-control:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    outline: none;
    background-color: #fff;
}

#billing-info-form .two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 0;
}

#billing-info-form .three-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 0;
}

#billing-info-form .form-row {
    margin-bottom: 20px;
}

#billing-info-form .subscription-system-submit-btn {
    background: linear-gradient(90deg, #4a90e2, #357ab8);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(74, 144, 226, 0.2);
    margin-top: 10px;
}

#billing-info-form .subscription-system-submit-btn:hover {
    background: linear-gradient(90deg, #357ab8, #2a6496);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(74, 144, 226, 0.3);
}

/* Message container for form feedback */
.subscription-system-message-container {
    margin-bottom: 20px;
}

/* Responsive adjustments for billing form */
@media (max-width: 768px) {
    #billing-info-form .two-columns,
    #billing-info-form .three-columns {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    #billing-info-form .form-control {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    #billing-info-form .subscription-system-submit-btn {
        width: 100%;
        padding: 12px 20px;
    }
}

/* Profile Edit Styles */
.profile-section {
    background-color: #f9fbfd;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.profile-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 20px;
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eef2f7;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #4a90e2, #5cb85c);
}

.password-section {
    background-color: #f9fbfd;
}

/* Password strength meter */
.password-strength-meter {
    margin-top: 5px;
}

.strength-bar {
    height: 4px;
    width: 0;
    background-color: #ddd;
    transition: width 0.3s, background-color 0.3s;
}

.strength-bar.weak {
    background-color: #ff4d4d;
}

.strength-bar.medium {
    background-color: #ffa64d;
}

.strength-bar.strong {
    background-color: #99cc00;
}

.strength-bar.very-strong {
    background-color: #22cc22;
}

.strength-text {
    font-size: 12px;
    color: #666;
    display: block;
    margin-top: 3px;
}

/* Password toggle */
.password-field-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
}

.password-toggle.visible {
    opacity: 0.8;
}

/* Required field indicator */
.required {
    color: #ff4d4d;
}

/* Form validation */
input.error {
    border-color: #ff4d4d;
}

.form-text {
    font-size: 12px;
    color: #666;
}

/* Form styles specific to profile edit */
#edit-profile-form .form-group,
#change-password-form .form-group {
    margin-bottom: 20px;
}

#edit-profile-form .form-control,
#change-password-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #fff;
    box-sizing: border-box;
    height: auto;
    line-height: normal;
}

#edit-profile-form .form-control:focus,
#change-password-form .form-control:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    outline: none;
}

#edit-profile-form .two-columns,
#change-password-form .two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 0;
}

#edit-profile-form .form-row,
#change-password-form .form-row {
    margin-bottom: 20px;
}

#edit-profile-form .subscription-system-submit-btn,
#change-password-form .subscription-system-submit-btn {
    background: linear-gradient(90deg, #4a90e2, #357ab8);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(74, 144, 226, 0.2);
    margin-top: 10px;
}

#edit-profile-form .subscription-system-submit-btn:hover,
#change-password-form .subscription-system-submit-btn:hover {
    background: linear-gradient(90deg, #357ab8, #2a6496);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(74, 144, 226, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-section {
        padding: 20px;
    }
    
    #edit-profile-form .two-columns,
    #change-password-form .two-columns {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    #edit-profile-form .form-control,
    #change-password-form .form-control {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    #edit-profile-form .subscription-system-submit-btn,
    #change-password-form .subscription-system-submit-btn {
        width: 100%;
        padding: 12px 20px;
    }
} 