/* 自定义样式 */
.btn {
    white-space: nowrap;
    /* 防止文字换行 */
    min-width: fit-content;
    /* 确保按钮宽度适应内容 */
    padding: 0.375rem 0.75rem;
    /* 保持合适的内边距 */
}

/* 导航栏按钮样式优化 */
.navbar .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    /* 设置最小宽度 */
}

.bg-primary {
    background-color: rgb(228 110 35) !important;
}

a {
    color: rgb(55 133 250) !important;
}

.btn-outline-primary {
    --bs-btn-color: rgb(55 133 250) !important;
    --bs-btn-border-color: rgb(55 133 250) !important;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: rgb(55 133 250) !important;
}
.blog-header {
    border-bottom: 1px solid #e5e5e5;
}
.blog-post {
    margin-bottom: 2rem;
}
.blog-post-title {
    font-size: 1.5rem;
}
.blog-sidebar {
    position: sticky;
    top: 2rem;
}

.profile-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.profile-header {
    text-align: center;
    margin-bottom: 30px;
}
.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 60px;
    margin-bottom: 15px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #6c757d;
    margin: 0 auto;
}
.profile-info {
    margin-top: 20px;
}
.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.info-label {
    font-weight: bold;
    color: #495057;
    width: 80px;
    flex-shrink: 0;
}
.info-value-container {
    flex-grow: 1;
    position: relative; /* For potential absolute positioning if needed */
    min-height: 1.5em; /* Ensure container has height */
}
.editable-value {
    cursor: pointer;
    border-bottom: 1px dashed #ccc;
    min-height: 1.5em;
    display: inline-block;
    padding: 0.375rem 0.75rem; /* Mimic input padding */
    line-height: 1.5; /* Mimic input line-height */
    width: calc(100% - 1.5rem); /* Adjust width to fit container */
}
.editable-input {
    display: none; /* Initially hidden */
    /* margin-left: 5px; */ /* Removed margin, rely on container */
    width: 100%; /* Make input fill container */
}
/* Ensure select and date inputs also fill width */
.editable-input.form-select,
.editable-input[type="date"] {
    width: 100%;
}
