/* 危废管理系统 - 自定义样式 */

:root {
    --hw-primary: #1a5276;
    --hw-success: #27ae60;
    --hw-warning: #f39c12;
    --hw-danger: #e74c3c;
}

body {
    background-color: #f5f6fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.navbar-brand {
    font-weight: 600;
}

/* 卡片 */
.hw-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}
.hw-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* 表单选择卡片 */
.form-type-card {
    cursor: pointer;
    text-align: center;
    padding: 24px 16px;
}
.form-type-card .icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}
.form-type-card .label {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
}

/* 表单 */
.form-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.form-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--hw-primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8e8e8;
}

/* 自动填充字段 */
.auto-field {
    background-color: #f0f8ff !important;
    border-left: 3px solid var(--hw-primary);
}

/* 签字区域 */
.signature-pad-container {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 8px;
    background: #fafafa;
}
.signature-pad-container canvas {
    width: 100%;
    touch-action: none;
}

/* 状态标签 */
.badge-pending { background-color: var(--hw-warning); }
.badge-approved { background-color: var(--hw-success); }
.badge-rejected { background-color: var(--hw-danger); }

/* 审批卡片 */
.approve-card {
    border-left: 4px solid var(--hw-warning);
}
.approve-card.approved {
    border-left-color: var(--hw-success);
}
.approve-card.rejected {
    border-left-color: var(--hw-danger);
}

/* 移动端优化 */
@media (max-width: 768px) {
    .form-type-card {
        padding: 16px 8px;
    }
    .form-type-card .icon {
        font-size: 2rem;
    }
    .form-type-card .label {
        font-size: 0.85rem;
    }
    .form-section {
        padding: 12px;
    }
}

/* 入库/出库切换 */
.inout-toggle .btn {
    min-width: 80px;
}

/* 表格 */
.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    white-space: nowrap;
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: var(--hw-primary);
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 通知角标 */
.notification-badge {
    position: relative;
}
.notification-badge .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 0.65rem;
}
