.profile-page {
    padding: 2rem 2rem 1rem; /* Reduced bottom padding */
    /* Removed min-height to prevent forcing extra space */
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
    max-width: 400px;
}

.profile-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-img.clickable {
    cursor: pointer;
}

.profile-info p {
    margin: 0.25rem 0;
}

/* Field labels styling */
label {
    color: #d0d0d0; /* Much lighter color than text-secondary */
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    display: block;
    opacity: 0.9; /* Higher opacity for better visibility */
    font-weight: 400; /* Lighter font weight */
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3); /* Subtle shadow for better readability */
}

/* Specific styling for form field labels across all tabs */
.profile-info label,
.form-group label,
.mb-3 label,
.form-check-label,
.tab-content label,
strong {
    color: #d0d0d0;
}

/* Style for static text fields that use p tags with strong elements */
.profile-info p strong {
    color: #d0d0d0;
    font-weight: 500;
    margin-right: 0.5rem;
}

/* Make sure all form labels are consistently styled */
.tab-pane label {
    color: #d0d0d0;
    opacity: 0.9;
}

/* Form field styling improvements */
.form-control {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(124, 77, 255, 0.2);
}

/* Profile info section improvements */
.profile-info {
    flex: 1;
}

.profile-info div {
    margin-bottom: 0.75rem;
}

/* Tab styling improvements */
.nav-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
    padding-bottom: 0;
}

.nav-tabs .nav-item {
    margin-bottom: -1px;
}

.nav-tabs .nav-link {
    color: var(--text-secondary);
    padding: 0.75rem 1.25rem;
    border-radius: 8px 8px 0 0;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    margin-right: 0.25rem;
}

.nav-tabs .nav-link:hover {
    color: var(--text);
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-tabs .nav-link.active {
    color: var(--text);
    background-color: var(--surface);
    border-color: rgba(255, 255, 255, 0.1) rgba(255, 255, 255, 0.1) var(--surface);
    position: relative;
}

.nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.tab-content {
    padding-top: 1rem;
}

/* Button styling improvements */
.btn {
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* Section spacing */
hr {
    margin: 1.5rem 0; /* Reduced margin */
    border-color: rgba(255, 255, 255, 0.1);
    opacity: 0.5;
}

h4 {
    margin-bottom: 1.25rem;
    font-weight: 600;
}

/* Reduce bottom spacing for last elements */
.tab-pane > :last-child {
    margin-bottom: 0;
}

.tab-pane > form:last-child button {
    margin-bottom: 0;
}

/* Ensure the footer is visible without scrolling */
.profile-page > :last-child {
    margin-bottom: 0;
}
