/* Profile Page Styles - Apple Design */

/* Profile Field Styles */
.profile-field {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dark .profile-field {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.profile-field:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.profile-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dark .profile-label {
    color: #9ca3af;
}

.profile-value {
    font-size: 15px;
    color: #111827;
    font-weight: 400;
}

.dark .profile-value {
    color: #f3f4f6;
}

.profile-input {
    width: 100%;
    padding: 12px 16px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 15px;
    color: #111827;
    transition: all 0.2s ease;
}

.dark .profile-input {
    background: #2c2c2e;
    border-color: #374151;
    color: #f3f4f6;
}

.profile-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dark .profile-input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

/* Verified Badge */
.verified-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background-color: #d1fae5;
    color: #065f46;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
}

.dark .verified-badge {
    background-color: #064e3b;
    color: #6ee7b7;
}

.unverified-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background-color: #fee2e2;
    color: #991b1b;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
}

.dark .unverified-badge {
    background-color: #7f1d1d;
    color: #fca5a5;
}

/* Role Badge */
.role-badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: #dbeafe;
    color: #1e40af;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    text-transform: capitalize;
}

.dark .role-badge {
    background-color: #1e3a8a;
    color: #93c5fd;
}

.role-badge.admin {
    background-color: #fef3c7;
    color: #92400e;
}

.dark .role-badge.admin {
    background-color: #78350f;
    color: #fcd34d;
}

.role-badge.superadmin {
    background-color: #fce7f3;
    color: #9f1239;
}

.dark .role-badge.superadmin {
    background-color: #831843;
    color: #f9a8d4;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.active {
    background-color: #d1fae5;
    color: #065f46;
}

.dark .status-badge.active {
    background-color: #064e3b;
    color: #6ee7b7;
}

.status-badge.inactive,
.status-badge.disabled {
    background-color: #fee2e2;
    color: #991b1b;
}

.dark .status-badge.inactive,
.dark .status-badge.disabled {
    background-color: #7f1d1d;
    color: #fca5a5;
}

.status-badge.blocked {
    background-color: #fef3c7;
    color: #92400e;
}

.dark .status-badge.blocked {
    background-color: #78350f;
    color: #fcd34d;
}

/* Toggle Switch */
.toggle-switch {
    width: 48px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.toggle-track {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    transition: background-color 0.3s ease;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.dark .toggle-track {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dark .toggle-slider {
    background: #1c1c1e;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.toggle-switch.active .toggle-track {
    background: #3b82f6;
}

.dark .toggle-switch.active .toggle-track {
    background: #60a5fa;
}

.toggle-switch.active .toggle-slider {
    transform: translateX(20px);
}

.toggle-switch:hover .toggle-track {
    background: rgba(0, 0, 0, 0.15);
}

.dark .toggle-switch:hover .toggle-track {
    background: rgba(255, 255, 255, 0.2);
}

.toggle-switch.active:hover .toggle-track {
    background: #2563eb;
}

.dark .toggle-switch.active:hover .toggle-track {
    background: #3b82f6;
}

/* Edit Mode Styles */
.profile-field.editing .profile-value {
    display: none;
}

.profile-field.editing .profile-input {
    display: block;
}

.profile-field:not(.editing) .profile-input {
    display: none;
}

/* Avatar Styles */
#avatarImage {
    display: none;
}

#avatarImage.loaded {
    display: block;
}

#avatarInitials.hidden {
    display: none;
}

/* Toast Notification Animation */
@keyframes slide-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-toast {
    animation: slide-down 0.3s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-field {
        padding-bottom: 16px;
    }
    
    .profile-label {
        font-size: 12px;
    }
    
    .profile-value {
        font-size: 14px;
    }
    
    .profile-toast {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

