/* 全局样式 */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
    color: #343a40;
}

main {
    flex: 1;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* 卡片样式 */
.card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    border: none;
    margin-bottom: 20px;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 15px 20px;
}

.card-body {
    padding: 20px;
}

/* 表单样式 */
.form-control {
    padding: 10px 15px;
    border-radius: 4px;
    border: 1px solid #ced4da;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn {
    padding: 10px 20px;
    border-radius: 4px;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* 徽章样式 */
.badge {
    padding: 5px 8px;
    border-radius: 4px;
}

/* 页脚样式 */
.footer {
    margin-top: auto;
    padding: 20px 0;
    background-color: #f8f9fa;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .card {
        margin-bottom: 15px;
    }
}

/* Toast通知样式 */
.toast {
    min-width: 280px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 1 !important;
}

.toast.bg-success {
    background-color: #28a745 !important;
}

.toast.bg-danger {
    background-color: #dc3545 !important;
}

.toast.bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.toast.bg-info {
    background-color: #17a2b8 !important;
}

.toast.bg-error {
    background-color: #dc3545 !important;
}

.toast-body {
    padding: 12px 15px;
    font-size: 0.95rem;
}

/* 消息标签转换 */
.toast.bg-debug {
    background-color: #6c757d !important;
}

.toast-container {
    max-width: 100%;
}

/* 让toast在移动设备上看起来更好 */
@media (max-width: 576px) {
    .toast {
        min-width: auto;
        max-width: 90vw;
    }
}
