/* Profile Page Styles */
.profile-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Roboto', sans-serif;
}

.profile-header {
    margin-bottom: 30px;
}

.profile-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

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

@media (min-width: 768px) {
    .profile-content {
        grid-template-columns: 2fr 1fr;
    }
}

.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 30px;
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #444;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #fafafa;
}

.form-control:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
    background-color: #fff;
}

/* Avatar Section */
.avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 15px;
    cursor: pointer;
}

.avatar-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s;
    color: #fff;
    font-size: 24px;
}

.avatar-wrapper:hover .avatar-overlay {
    opacity: 1;
}

.avatar-helper-text {
    font-size: 13px;
    color: #888;
    text-align: center;
}

/* Buttons */
.btn-save {
    background-color: #007aff;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
    margin-top: 10px;
}

.btn-save:hover {
    background-color: #0062cc;
}

.btn-secondary {
    background-color: #f5f5f7;
    color: #333;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
}

.btn-secondary:hover {
    background-color: #e5e5ea;
}

.btn-primary {
    background-color: #007aff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
}

/* 2FA Section */
.security-content {
    text-align: center;
}

.security-icon {
    font-size: 40px;
    color: #007aff;
    margin-bottom: 20px;
}

.security-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

#2fa-setup-container {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: left;
}

.qr-code-display {
    text-align: center;
    margin: 15px 0;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    display: inline-block;
}

.secret-code-wrapper {
    background: #eef2f5;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 14px;
    color: #333;
    margin: 10px 0;
    word-break: break-all;
    text-align: center;
}

.token-input-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.token-input-group input {
    flex: 1;
    letter-spacing: 2px;
    text-align: center;
}