/* 日志记录专用样式 */
.log-tab {
    position: relative;
}

.unregistered-alert {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #ff9800;
    color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 300px;
    z-index: 1000;
    display: none;
}

.unregistered-alert.show {
    display: block;
}

.unregistered-alert .alert-content {
    position: relative;
    padding-right: 25px;
}

.unregistered-alert p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.unregistered-alert .close-alert {
    position: absolute;
    top: -10px;
    right: -10px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    color: #ff9800;
    font-size: 0.8rem;
}

.datetime-group {
    flex: 1 1 calc(50% - 15px);
    min-width: 250px;
}

.help-btn-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.help-btn-container .btn {
    flex: 1;
}

/* 新增：修复日志列表显示 */
.log-list {
    max-height: 500px;
    overflow-y: auto;
    margin-top: 15px;
}

.log-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.log-header {
    background: #f5f5f5;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

/* 修复顶部显示 */
header {
    position: relative;
    z-index: 100;
}

/* 信号报告输入框样式 */
#signal {
    width: 80px;  /* 增加宽度 */
    padding: 8px; /* 增加内边距 */
}
/* 信号报告容器样式 */
.signal-container {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
}

#signal-select {
    flex: 1;
    min-width: 120px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
}

#signal {
    flex: 0 0 70px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
}

/* 日期时间组调整 */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    min-width: 250px;
}

.time-display {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #ddd;
}

#current-date, #current-time {
    flex: 1;
    min-width: 100px;
}

#refresh-time {
    min-width: 80px;
    padding: 8px 10px;
}

/* 新增样式 - 统一表单高度 */
.form-group input, .form-group select, .form-group textarea,
.form-group .signal-container, .form-group .time-display {
    height: 46px; /* 统一高度 */
    box-sizing: border-box;
}

/* 调整按钮高度 */
.help-btn-container .btn {
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 特殊调整信号报告容器 */
.signal-container {
    display: flex;
    align-items: center;
}

/* 通讯模式选项垂直居中 - 修复高度问题 */
.mode-options {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 0; /* 移除异常内边距 */
    height: 46px; /* 固定高度 */
}

/* 日期时间显示框内部对齐 */
.time-display {
    display: flex;
    align-items: center;
}

/* 通讯模式选项样式 */
.mode-options label {
    flex: 1;
    text-align: center;
    padding: 0 10px; /* 减少垂直内边距 */
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%; /* 继承父容器高度 */
    position: relative; /* 为单选按钮定位 */
}

/* 缩小单选按钮 */
.mode-options input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* 自定义单选按钮样式 */
.mode-options label span {
    position: relative;
    padding-left: 22px; /* 为自定义单选按钮留空间 */
    line-height: 1;
}

.mode-options label span:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px; /* 缩小单选按钮 */
    height: 16px; /* 缩小单选按钮 */
    border-radius: 50%;
    border: 1px solid #aaa;
    background-color: #fff;
    box-sizing: border-box;
}

.mode-options input[type="radio"]:checked + span:before {
    border-color: var(--primary);
}

.mode-options input[type="radio"]:checked + span:after {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary);
}

/* 调整选中状态的文本样式 */
.mode-options input[type="radio"]:checked + span {
    font-weight: bold;
    color: var(--primary);
}

/* 新增：模式频率提示样式 */
.mode-frequency-alert {
    background: #FFEB3B;
    color: #333;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
}

.mode-frequency-alert .alert-content {
    position: relative;
    padding-right: 25px;
}

.mode-frequency-alert p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.mode-frequency-alert .close-alert {
    position: absolute;
    top: -10px;
    right: -10px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    color: #333;
    font-size: 0.8rem;
}

/* 新增：协作提示样式 */
.collab-alert {
    background: #FFEB3B;
    color: #333;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
}

.collab-alert .alert-content {
    position: relative;
    padding-right: 25px;
}

.collab-alert p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.collab-alert .close-alert {
    position: absolute;
    top: -10px;
    right: -10px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    color: #333;
    font-size: 0.8rem;
}

/* 设备建议样式 */
#device-model-suggestions {
    position: absolute;
    width: 100%;
    background: white;
    border: 1px solid #ddd;
    z-index: 1000;
    display: none;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.suggestion-item:hover {
    background-color: #f0f0f0;
}