/* Profile Page Styles */

/* Toggle Checkbox Custom Style */
.toggle-checkbox {
    appearance: none;
    width: 48px;
    height: 24px;
    background-color: #6B7280;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s;
}

.toggle-checkbox::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: white;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

.toggle-checkbox:checked {
    background-color: #E94560;
}

.toggle-checkbox:checked::before {
    transform: translateX(24px);
}

.toggle-checkbox:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Tab Navigation */
.tab-btn {
    color: #6B7280;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: #16213E;
}

.dark .tab-btn:hover {
    color: #FAF6F0;
}

.tab-btn.active {
    color: #E94560;
    border-bottom-color: #E94560;
}

/* Avatar Upload Preview */
#profile-avatar {
    transition: opacity 0.3s;
}

#profile-avatar:hover {
    opacity: 0.9;
}

/* Input Focus States */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #E94560;
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

/* Smooth Transitions */
* {
    transition-property: color, background-color, border-color;
    transition-duration: 0.2s;
    transition-timing-function: ease-in-out;
}

/* Toast Notification Styles */
.toast {
    min-width: 300px;
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease-out;
    background: white;
    border: 1px solid rgba(22, 33, 62, 0.1);
}

.dark .toast {
    background: #16213E;
    border-color: rgba(250, 246, 240, 0.1);
}

.toast.success {
    border-left: 4px solid #10B981;
}

.toast.error {
    border-left: 4px solid #EF4444;
}

.toast.info {
    border-left: 4px solid #3B82F6;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast.hiding {
    animation: slideOut 0.3s ease-in forwards;
}

/* Loading Skeleton */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.skeleton {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    background-color: rgba(107, 114, 128, 0.2);
    border-radius: 8px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .tab-btn {
        padding: 12px 16px;
        font-size: 12px;
    }
    
    #profile-avatar {
        width: 96px;
        height: 96px;
    }
    
    .toast {
        min-width: 250px;
        padding: 12px 16px;
    }
}

/* Dark Mode Enhancements */
.dark {
    color-scheme: dark;
}

/* Smooth Avatar Upload Transition */
#change-avatar-btn {
    transition: transform 0.2s, box-shadow 0.2s;
}

#change-avatar-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(233, 69, 96, 0.4);
}

#change-avatar-btn:active {
    transform: scale(0.95);
}

/* Input Disabled State */
input:disabled,
textarea:disabled,
select:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Selection Colors */
::selection {
    background-color: #E94560;
    color: white;
}

::-moz-selection {
    background-color: #E94560;
    color: white;
}
