* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #0a0a0a;
    color: #fff;
    min-height: 100vh;
}

#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.profile-header {
    text-align: center;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(30px);
}

.profile-avatar-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    cursor: pointer;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #00a8ff;
    transition: transform 0.3s ease;
}

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

/* Add these styles to your existing CSS */

.save-button {
    position: relative;
    overflow: hidden;
    background: #00a8ff;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-button:hover {
    transform: scale(1.05);
    background: #0088cc;
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.4);
}

.save-button:active {
    transform: scale(0.95);
}

.save-button.loading {
    background: #666;
    pointer-events: none;
}

.save-button.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.notification {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateX(150%);
    opacity: 0;
}

.notification.success {
    border-left: 4px solid #00c853;
}

.notification.error {
    border-left: 4px solid #ff3d00;
}

.notification i {
    font-size: 1.2rem;
}

.notification.success i {
    color: #00c853;
}

.notification.error i {
    color: #ff3d00;
}

/* Add responsive styles */
@media (max-width: 768px) {
    .save-button {
        width: 100%;
        padding: 12px 20px;
    }

    .notification-container {
        left: 20px;
        right: 20px;
    }

    .notification {
        width: 100%;
    }
}

/* Add styles for the back button */
.back-button {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

/* Add these notification styles */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.notification {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateX(150%);
    opacity: 0;
    min-width: 300px;
}

.notification.success {
    border-left: 4px solid #00c853;
}

.notification.error {
    border-left: 4px solid #ff3d00;
}

.notification-icon {
    font-size: 1.5rem;
}

.success-icon {
    color: #00c853;
    display: none;
}

.error-icon {
    color: #ff3d00;
    display: none;
}

.notification.success .success-icon {
    display: block;
}

.notification.error .error-icon {
    display: block;
}

.notification-message {
    color: #333;
    font-size: 0.95rem;
}

/* Required field indicator */
.required-field::after {
    content: '*';
    color: #ff3d00;
    margin-left: 4px;
}

.input-error {
    border-color: #ff3d00 !important;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-avatar-container:hover .avatar-overlay {
    opacity: 1;
}

.profile-avatar-container:hover .profile-avatar {
    transform: scale(1.05);
}

#avatarUpload {
    display: none;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
}

.stat-card i {
    font-size: 2.5rem;
    color: #00a8ff;
    margin-bottom: 15px;
}

.profile-details {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    opacity: 0;
    transform: translateY(30px);
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #00a8ff;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
}

textarea {
    height: 120px;
    resize: vertical;
}

.preferences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.save-button {
    background: #00a8ff;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.save-button:hover {
    transform: scale(1.05);
    background: #0088cc;
}