/**
 * OPRaaS Account Manager CSS
 * Version: 1.0.1
 * Matches Dashboard Widgets styling
 */

/* Logout Widget */
.opraas-logout-widget {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px 24px;
    margin-bottom: 24px;
}

.opraas-logout-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logout-greeting {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.logout-greeting strong {
    color: #2b3b63;
    font-weight: 600;
}

.logout-btn {
    flex-shrink: 0;
}

/* Responsive logout widget */
@media (max-width: 576px) {
    .opraas-logout-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .logout-btn {
        width: 100%;
        text-align: center;
    }
}

/* Account Details Widget - add spacing below */
.opraas-account-widget {
    margin-bottom: 50px !important;
}

/* Account Details Grid */
.account-details-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    flex: 0 0 180px;
    font-weight: 600;
    color: #2b3b63;
    font-size: 14px;
}

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

/* Form Styling */
.opraas-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #2b3b63;
    margin-bottom: 8px;
    font-size: 14px;
}

.required {
    color: #F44336;
}

.form-group input[type="password"],
.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #2b3b63;
}

.form-help {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

/* Password Strength Meter */
.password-strength {
    margin: 16px 0;
}

.strength-bar {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.strength-bar-fill {
    height: 100%;
    width: 0%;
    transition: width 0.3s, background-color 0.3s;
    border-radius: 3px;
}

.strength-text {
    font-size: 13px;
    font-weight: 600;
}

.strength-weak .strength-bar-fill {
    width: 33%;
    background: #F44336;
}

.strength-weak .strength-text {
    color: #F44336;
}

.strength-medium .strength-bar-fill {
    width: 66%;
    background: #FF9800;
}

.strength-medium .strength-text {
    color: #FF9800;
}

.strength-strong .strength-bar-fill {
    width: 100%;
    background: #4CAF50;
}

.strength-strong .strength-text {
    color: #4CAF50;
}

/* Form Actions */
.form-actions {
    margin-top: 24px;
}

/* Messages */
#password-change-messages {
    margin-bottom: 20px;
}

.message {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 14px;
}

.message-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4CAF50;
}

.message-error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #F44336;
}

/* Button Loading State */
.action-btn {
    position: relative;
}

.action-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.action-btn.loading .btn-text {
    display: none;
}

.action-btn.loading .btn-loading {
    display: inline !important;
}

/* Responsive */
@media (max-width: 768px) {
    .detail-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .detail-label {
        flex: none;
    }
    
    .opraas-form {
        max-width: 100%;
    }
}

/* Membership Status Badges */
.membership-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

.membership-expired {
    background: #ffebee;
    color: #c62828;
}

.membership-active {
    background: #e8f5e9;
    color: #2e7d32;
}
