/* DeepSOC 主样式文件 */

/* 全局样式 */
body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* 首页样式 */
.event-card {
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s;
}
.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.severity-high {
    border-left: 5px solid #dc3545;
}
.severity-medium {
    border-left: 5px solid #ffc107;
}
.severity-low {
    border-left: 5px solid #28a745;
}
.status-pending {
    background-color: #f8f9fa;
}
.status-processing {
    background-color: #e2f0fd;
}
.status-completed {
    background-color: #e2f8e9;
}

/* 作战室样式 */
.chat-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
    background-color: #f8f9fa;
}
.team-container {
    width: 300px;
    overflow-y: auto;
    border-left: 1px solid #dee2e6;
    padding: 1rem;
    background-color: #f8f9fa;
}
.message {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    max-width: 80%;
}
.message-captain {
    background-color: #d1e7ff;
    border-left: 4px solid #0d6efd;
    align-self: flex-start;
}
.message-manager {
    background-color: #d7f5e3;
    border-left: 4px solid #198754;
    align-self: flex-start;
}
.message-operator {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    align-self: flex-start;
}
.message-executor {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
    align-self: flex-start;
}
.message-expert {
    background-color: #e2e3e5;
    border-left: 4px solid #6c757d;
    align-self: flex-start;
}
.message-user {
    background-color: #e9ecef;
    border-right: 4px solid #6c757d;
    align-self: flex-end;
}
.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}
.message-sender {
    font-weight: bold;
}
.message-time {
    color: #6c757d;
}
.message-content {
    white-space: pre-wrap;
}
.team-member {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background-color: #fff;
    border-left: 4px solid #6c757d;
}
.team-member-captain {
    border-left-color: #0d6efd;
}
.team-member-manager {
    border-left-color: #198754;
}
.team-member-operator {
    border-left-color: #ffc107;
}
.team-member-executor {
    border-left-color: #dc3545;
}
.team-member-expert {
    border-left-color: #6c757d;
}
.yaml-content {
    background-color: #f8f9fa;
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-family: monospace;
    white-space: pre-wrap;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* DeepSOC 自定义样式 */

/* Logo 样式 */
.logo-img {
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.navbar-brand img {
    transition: all 0.3s ease;
}

.navbar-brand:hover img {
    transform: rotate(5deg);
}

/* 必填字段高亮样式 */
.required-field:required {
    border-color: #dc3545;
    box-shadow: 0 0 0.25rem rgba(220, 53, 69, 0.5);
}
