/* 行程与待办管理系统 - 自定义样式 */

/* 通用 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    background-color: #f5f7fa;
}

/* 导航栏 */
.navbar-brand {
    font-weight: 600;
}

/* 日历 */
#calendar {
    padding: 10px;
}
.fc .fc-toolbar-title {
    font-size: 1.1em;
}
.fc .fc-event {
    cursor: pointer;
    border-radius: 4px;
    padding: 1px 4px;
}
.fc .fc-daygrid-day-number {
    font-size: 0.9em;
}

/* 行程项 */
.schedule-item:hover {
    background-color: #f0f4ff;
}

/* 涉密标记 */
.secret-badge {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75em;
}

/* 优先级 */
.priority-urgent { border-left: 3px solid #dc3545; }
.priority-important { border-left: 3px solid #fd7e14; }
.priority-normal { border-left: 3px solid #6c757d; }

/* 逾期 */
.overdue {
    animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* 分隔线文字 */
.divider-text {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 0.85em;
}
.divider-text::before,
.divider-text::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #dee2e6;
}
.divider-text::before { margin-right: 0.5em; }
.divider-text::after { margin-left: 0.5em; }

/* 模态框 */
.modal-lg {
    max-width: 700px;
}

/* 卡片 */
.card {
    border: none;
    border-radius: 8px;
}
.card-header {
    border-radius: 8px 8px 0 0 !important;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 8px;
        padding-right: 8px;
    }
    .card {
        margin-bottom: 0.5rem;
    }
    .table th, .table td {
        padding: 0.3rem;
        font-size: 0.85em;
    }
    #calendar {
        padding: 4px;
    }
    .fc .fc-toolbar-title {
        font-size: 0.95em;
    }
    .btn-sm {
        font-size: 0.8em;
    }
    .modal-dialog {
        margin: 0.5rem;
    }
}

/* 滚动条 */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

/* Toast */
.toast {
    min-width: 200px;
}

/* 打印 */
@media print {
    .navbar, .btn, .modal, #toastContainer { display: none !important; }
    .card { border: 1px solid #ddd; box-shadow: none; }
}
