/* 部署详情页面 - 玻璃拟态风格 */
.view-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 1rem;
    align-items: start;
}
@media (max-width: 1100px) {
    .view-grid { grid-template-columns: 340px 1fr; }
}
@media (max-width: 900px) {
    .view-grid { grid-template-columns: 1fr; }
}

/* 操作栏 */
.action-bar {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.action-bar h5 {
    margin: 0;
    font-weight: 600;
    color: var(--text-primary);
}
.action-bar small {
    color: var(--text-muted);
}
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

/* 信息卡片 */
.info-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1rem;
}
.info-card-header {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.info-card-header h6 {
    margin: 0;
    font-weight: 600;
    font-size: 0.9rem;
}
.info-card-body {
    padding: 0;
}

/* 信息表格 */
.info-table {
    width: 100%;
    margin: 0;
}
.info-table th, .info-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.875rem;
}
.info-table th {
    width: 35%;
    background: rgba(99, 102, 241, 0.05);
    color: var(--text-secondary);
    font-weight: 500;
}
.info-table td {
    color: var(--text-primary);
}
.info-table tr:last-child th,
.info-table tr:last-child td {
    border-bottom: none;
}

/* 日志容器 */
.logs-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.logs-card-header {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.logs-card-header h6 {
    margin: 0;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}
.logs-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
.logs-controls .form-switch {
    margin: 0;
    padding-left: 2.5em;
    min-height: auto;
    display: flex;
    align-items: center;
}
.logs-controls .form-check-input {
    margin-top: 0;
    flex-shrink: 0;
}
.logs-controls .form-check-label {
    font-size: 0.75rem;
    white-space: nowrap;
    margin-left: 0.5rem;
    color: white !important;
    opacity: 1 !important;
}
.logs-body {
    background: #0f172a;
    color: #e2e8f0;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.8rem;
    padding: 1rem;
    min-height: 300px;
    max-height: 450px;
    overflow-y: auto;
    line-height: 1.6;
}
.log-line { margin-bottom: 0.25rem; word-break: break-all; }
.log-line.error { color: #f87171; }
.log-line.warning { color: #fbbf24; }
.log-line.success { color: #4ade80; }
.log-line.info { color: #60a5fa; }

/* 状态历史 */
.history-table {
    width: 100%;
    font-size: 0.8rem;
}
.history-table th {
    background: rgba(99, 102, 241, 0.1);
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.history-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--glass-border);
}

/* 模态框样式 - 确保正确弹出 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1055;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
    background-color: rgba(0, 0, 0, 0.5);
}
.modal.show {
    display: block;
}
.modal-dialog {
    position: relative;
    width: auto;
    margin: 1.75rem auto;
    max-width: 500px;
    pointer-events: none;
}
.modal.show .modal-dialog {
    transform: none;
}
.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background: rgba(30, 41, 59, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
}
.modal-header {
    border-bottom: 1px solid var(--glass-border);
    padding: 0.75rem 1rem;
}
.modal-header .modal-title {
    color: var(--text-primary);
    font-size: 0.95rem;
}
.modal-header .btn-close { filter: invert(1); }
.modal-body {
    padding: 1.5rem;
}
.modal-footer {
    border-top: 1px solid var(--glass-border);
    padding: 0.75rem 1rem;
}
.modal-backdrop {
    display: none;
}
