:root {
    --primary-color: #427770;
    --secondary-color: #6caaa9;
    --accent-color: #a5e4da;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #04262b;
    --text-secondary: #304c54;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --success-color: #28a745;
    --error-color: #dc3545;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
}

.navbar {
    background-color: var(--bg-primary);
    box-shadow: 0 2px 4px var(--shadow-color);
}

.profile-section {
    background: var(--bg-primary);
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow-color);
    padding: 2rem;
    margin: 2rem 0;
}

.profile-header {
    margin-bottom: 2rem;
    text-align: center;
}

.profile-header h1 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.profile-header p {
    color: var(--text-secondary);
}

.profile-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
}

/* Profile Image Section */
.profile-image-section {
    text-align: center;
    margin-bottom: 2rem;
}

.image-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-container:hover .image-overlay {
    opacity: 1;
}

.upload-btn {
    color: white;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
}

.upload-btn i {
    font-size: 1.5rem;
}

.upload-progress {
    width: 200px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    margin: 1rem auto;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    width: 0;
    transition: width 0.3s ease;
}

/* Loading state for image */
.profile-image img.loading {
    opacity: 0.6;
}

/* Form Sections */
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-section {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 10px;
}

.form-section h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    transition: all 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(66, 119, 112, 0.1);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-primary:hover {
    background: #386660;
    transform: translateY(-2px);
}

.btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 992px) {
    .profile-content {
        grid-template-columns: 1fr;
    }

    .profile-image-section {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .profile-section {
        padding: 1rem;
    }

    .form-section {
        padding: 1rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}
