/* User Manager Public Styles */

/* Common Styles */
.user-manager-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.user-manager-section {
    margin-bottom: 30px;
}

.user-manager-heading {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #333;
}

.user-manager-subheading {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #555;
}

.user-manager-notice {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    background-color: #f8f9fa;
    border-left: 4px solid #4a6fdc;
}

.user-manager-notice.success {
    background-color: #e8f5e9;
    border-left-color: #4caf50;
}

.user-manager-notice.error {
    background-color: #fdecea;
    border-left-color: #f44336;
}

.user-manager-notice.warning {
    background-color: #fff8e1;
    border-left-color: #ff9800;
}

/* Form Styles */
.user-manager-form {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    max-width: 500px;
    margin: 0 auto;
}

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

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

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="password"],
.form-field input[type="tel"],
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-field input[type="text"]:focus,
.form-field input[type="email"]:focus,
.form-field input[type="password"]:focus,
.form-field input[type="tel"]:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: #4a6fdc;
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 111, 220, 0.2);
}

.form-field .field-description {
    margin-top: 5px;
    font-size: 0.85em;
    color: #666;
}

.form-field.error input,
.form-field.error select,
.form-field.error textarea {
    border-color: #f44336;
}

.field-error {
    color: #f44336;
    font-size: 0.85em;
    margin-top: 5px;
}

.form-actions {
    margin-top: 30px;
}

.form-submit {
    background-color: #4a6fdc;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-submit:hover {
    background-color: #3a5bbf;
}

.form-submit:disabled {
    background-color: #a0a0a0;
    cursor: not-allowed;
}

.form-separator {
    margin: 25px 0;
    text-align: center;
    position: relative;
}

.form-separator::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e0e0e0;
}

.form-separator span {
    position: relative;
    background-color: #fff;
    padding: 0 15px;
    color: #757575;
    font-size: 14px;
}

.form-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.form-footer a {
    color: #4a6fdc;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Login Form Specific */
.login-form .remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.login-form .remember-me input[type="checkbox"] {
    margin-right: 8px;
}

.login-form .forgot-password {
    display: block;
    text-align: right;
    margin-top: -15px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Registration Form Specific */
.registration-form .password-strength {
    margin-top: 8px;
}

.password-strength-meter {
    height: 5px;
    background-color: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.password-strength-meter-fill {
    height: 100%;
    width: 0;
    transition: width 0.3s, background-color 0.3s;
}

.password-strength-text {
    font-size: 0.85em;
}

.strength-weak .password-strength-meter-fill {
    width: 25%;
    background-color: #f44336;
}

.strength-medium .password-strength-meter-fill {
    width: 50%;
    background-color: #ff9800;
}

.strength-good .password-strength-meter-fill {
    width: 75%;
    background-color: #4caf50;
}

.strength-strong .password-strength-meter-fill {
    width: 100%;
    background-color: #2e7d32;
}

.terms-agreement {
    margin-top: 20px;
}

.terms-agreement label {
    display: flex;
    align-items: flex-start;
}

.terms-agreement input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
}

/* Multi-step Form */
.multi-step-form .step {
    display: none;
}

.multi-step-form .step.active {
    display: block;
}

.step-indicators {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.step-indicator {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #757575;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 10px;
    font-weight: 500;
    position: relative;
}

.step-indicator.active {
    background-color: #4a6fdc;
    color: white;
}

.step-indicator.completed {
    background-color: #4caf50;
    color: white;
}

.step-indicator::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    width: 20px;
    height: 2px;
    background-color: #e0e0e0;
    transform: translateY(-50%);
}

.step-indicator:last-child::after {
    display: none;
}

.step-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

/* User Profile */
.user-profile {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.profile-header {
    padding: 30px;
    background-color: #f5f7fa;
    text-align: center;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden;
    position: relative;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-change {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
}

.profile-name {
    font-size: 1.5em;
    margin-bottom: 5px;
}

.profile-role {
    color: #666;
    font-size: 0.9em;
}

.profile-content {
    padding: 30px;
}

.profile-section {
    margin-bottom: 30px;
}

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

.section-title {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1.2em;
}

.profile-field {
    margin-bottom: 20px;
}

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

.field-label {
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
    color: #333;
}

.field-value {
    color: #555;
}

.field-edit {
    float: right;
    color: #4a6fdc;
    cursor: pointer;
    font-size: 0.9em;
}

.field-edit:hover {
    text-decoration: underline;
}

/* User Dashboard */
.user-dashboard {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.dashboard-header {
    padding: 20px 30px;
    background-color: #f5f7fa;
    border-bottom: 1px solid #e0e0e0;
}

.dashboard-welcome {
    margin-bottom: 0;
}

.dashboard-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 30px;
}

.dashboard-card {
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 20px;
    border: 1px solid #e8e8e8;
}

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

.card-title {
    font-size: 1.1em;
    margin: 0;
    color: #333;
}

.card-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #f5f7fa;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #4a6fdc;
}

.card-content {
    font-size: 0.95em;
    color: #555;
}

/* Notification Center */
.notification-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notification-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-content {
    margin-bottom: 5px;
}

.notification-time {
    font-size: 0.85em;
    color: #999;
}

.notification-item.unread {
    background-color: #f8f9fa;
    border-left: 3px solid #4a6fdc;
    padding-left: 10px;
}

/* Subscription Section */
.subscription-info {
    padding: 15px;
    background-color: #f5f7fa;
    border-radius: 4px;
    margin-bottom: 20px;
}

.subscription-status {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.subscription-details {
    font-size: 0.9em;
    color: #666;
}

.subscription-actions {
    margin-top: 15px;
}

.subscription-actions .button {
    padding: 8px 15px;
    border-radius: 4px;
    background-color: #4a6fdc;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
}

.subscription-actions .button:hover {
    background-color: #3a5bbf;
}

.plan-comparison {
    margin-top: 30px;
    overflow-x: auto;
}

.plan-table {
    width: 100%;
    border-collapse: collapse;
}

.plan-table th,
.plan-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.plan-table th {
    background-color: #f5f7fa;
    font-weight: 600;
}

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

.plan-price {
    font-weight: 600;
    font-size: 1.2em;
    color: #333;
}

.plan-billing {
    display: block;
    font-size: 0.85em;
    color: #666;
    font-weight: normal;
}

.feature-included {
    color: #4caf50;
}

.feature-not-included {
    color: #f44336;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .user-manager-form {
        padding: 20px;
    }
    
    .dashboard-content {
        grid-template-columns: 1fr;
    }
    
    .form-field input[type="text"],
    .form-field input[type="email"],
    .form-field input[type="password"],
    .form-field input[type="tel"],
    .form-field textarea,
    .form-field select {
        font-size: 14px;
        padding: 8px 10px;
    }
    
    .form-submit {
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* RTL Support */
html[dir="rtl"] .form-field .field-description,
html[dir="rtl"] .field-error {
    text-align: right;
}

html[dir="rtl"] .login-form .remember-me input[type="checkbox"] {
    margin-right: 0;
    margin-left: 8px;
}

html[dir="rtl"] .login-form .forgot-password {
    text-align: left;
}

html[dir="rtl"] .terms-agreement input[type="checkbox"] {
    margin-right: 0;
    margin-left: 10px;
}

html[dir="rtl"] .field-edit {
    float: left;
}

html[dir="rtl"] .notification-item.unread {
    border-left: none;
    border-right: 3px solid #4a6fdc;
    padding-left: 0;
    padding-right: 10px;
}

html[dir="rtl"] .step-indicator::after {
    left: auto;
    right: 100%;
}

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

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

.form-field, 
.user-manager-notice, 
.step {
    animation: fadeIn 0.3s ease-out;
}
