/* 通用删除样式 */
.delete-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    display: none;
}

.delete-modal.show {
    display: flex;
}

.delete-modal-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.delete-modal-header {
    margin-bottom: 20px;
    text-align: center;
}

.delete-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.delete-modal-body {
    margin-bottom: 30px;
    text-align: center;
}

.delete-modal-body p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

.delete-modal-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.delete-modal-footer .btn {
    flex: 1;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete-modal-footer .btn-cancel {
    background-color: #6c757d;
    color: #fff;
    border: none;
}

.delete-modal-footer .btn-cancel:hover {
    background-color: #5a6268;
}

.delete-modal-footer .btn-delete {
    background-color: #dc3545;
    color: #fff;
    border: none;
}

.delete-modal-footer .btn-delete:hover {
    background-color: #c82333;
}

/* 通用提示样式 */
.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    color: #fff;
    z-index: 9999;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 300px;
}

.notification-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-toast.success {
    background-color: #d4edda;
    color: #155724;
}

.notification-toast.error {
    background-color: #f8d7da;
    color: #721c24;
}

.notification-toast.info {
    background-color: #17a2b8;
}

.notification-toast.warning {
    background-color: #ffc107;
    color: #333;
}

/* 通用搜索方案 */
.search-container {
    position: relative;
    margin-bottom: 20px;
}

.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.search-input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 200px;
}

.search-input-group label {
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.search-input-group input,
.search-input-group select,
.search-input-group .form-control {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.search-input-group input:focus,
.search-input-group select:focus,
.search-input-group .form-control:focus {
    outline: none;
    border-color: #1970FF;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.search-button {
    padding: 8px 20px;
    background-color: #1970FF;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-end;
}

.search-button:hover {
    background-color: #1970FF;
}

/* 通用按钮样式 */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: #1970FF;
    color: #fff;
}

.btn-primary:hover {
    background-color: #1970FF;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-danger {
    background-color: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-success {
    background-color: #28a745;
    color: #fff;
}

.btn-success:hover {
    background-color: #218838;
}

/* 通用加载动画 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #1970FF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 通用表格样式 */
.table-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.table th,
.table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
    font-size: 12px;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.table tr:hover {
    background-color: #f8f9fa;
}

.table tr:last-child td {
    border-bottom: none;
}

/* Markdown表格样式 */
.message-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 14px;
}

.message-content table th,
.message-content table td {
    padding: 8px 12px;
    text-align: left;
    border: 1px solid #e9ecef;
}

.message-content table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.message-content table tr:hover {
    background-color: #f8f9fa;
}

/* 通用卡片样式 */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease;

}

.card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-header {
    margin-bottom: 15px;
}

.card-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.card-body {
    color: #333;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .delete-modal-content {
        margin: 0 20px;
        padding: 20px;
    }
    
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input-group {
        min-width: 100%;
    }
    
    .search-button {
        align-self: stretch;
    }
    
    .notification-toast {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}