/* Toast Notification Styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    pointer-events: none;
    /* Allow clicking through container space */
}

.toast {
    position: relative;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    /* Changed from flex-start to center */
    gap: 1rem;
    animation: slideInToast 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    min-width: 320px;
    color: #fff;
    pointer-events: auto;
    backdrop-filter: blur(10px);
    overflow: hidden;
    transform-origin: right center;
}

.toast.hiding {
    animation: slideOutToast 0.3s ease forwards;
}

/* Status Colors */
.toast.success {
    border-left-color: #2ecc71;
}

.toast.success .toast-icon {
    color: #2ecc71;
}

.toast.error {
    border-left-color: #e74c3c;
}

.toast.error .toast-icon {
    color: #e74c3c;
}

.toast.info {
    border-left-color: #3498db;
}

.toast.info .toast-icon {
    color: #3498db;
}

.toast.warning {
    border-left-color: #f1c40f;
}

.toast.warning .toast-icon {
    color: #f1c40f;
}

.toast-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    height: 100%;
}

.toast-message {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 500;
}

.toast-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    margin-left: -8px;
    margin-top: -4px;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

@keyframes slideInToast {
    from {
        opacity: 0;
        transform: translateX(100%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes slideOutToast {
    to {
        opacity: 0;
        transform: translateX(100%) scale(0.9);
        height: 0;
        margin: 0;
        padding: 0;
    }
}

/* Profile Dropdown */
.profile-dropdown {
    position: relative;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 25px;
    transition: background 0.3s;
}

.profile-trigger:hover {
    background: rgba(255, 255, 255, 0.05);
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.profile-name {
    color: var(--text-primary);
    font-weight: 500;
}

.dropdown-arrow {
    color: var(--text-secondary);
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.profile-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.profile-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: background 0.2s;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background: var(--bg-card-hover);
}

.dropdown-item:first-child {
    border-radius: 10px 10px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 10px 10px;
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

/* Settings Page */
.settings-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.settings-section {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.settings-section h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.profile-photo-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.profile-photo-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.photo-upload-btn {
    position: relative;
    overflow: hidden;
}

.photo-upload-btn input[type="file"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}

.settings-form-row {
    margin-bottom: 1.5rem;
}

.settings-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}