/* style.css */
:root {
    --primary-color: #4CAF50;
    --secondary-color: #2196F3;
    --danger-color: #f44336;
    --warning-color: #FF9800;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-color: #dee2e6;
    --text-color: #333;
    --text-light: #666;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.card-header {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.card-header h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #0b7dda;
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #d32f2f;
    transform: translateY(-2px);
}

.btn-warning {
    background: var(--warning-color);
    color: white;
}

.btn-warning:hover {
    background: #f57c00;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* 导航栏 */
.navbar {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-menu a {
    text-decoration: none;
    padding: 10px 20px;
    background: var(--light-color);
    color: var(--dark-color);
    border-radius: 5px;
    transition: var(--transition);
}

.nav-menu a:hover {
    background: var(--primary-color);
    color: white;
}

.nav-menu a.active {
    background: var(--primary-color);
    color: white;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
    min-width: 200px;
}

/* 表格样式 */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table th,
.table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: var(--light-color);
    font-weight: 600;
    color: var(--dark-color);
}

.table tr:hover {
    background: #f5f5f5;
}

/* 警告和信息样式 */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* 徽章 */
.badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 10px;
}

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

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

/* 搜索框 */
.search-box {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

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

.search-input-group {
    flex: 1;
}

.search-input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.search-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
}

.search-btn {
    padding: 10px 25px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.search-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
}

/* 位置指示器 */
.location-badge {
    display: inline-flex;
    align-items: center;
    background: var(--light-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.location-badge .bed {
    color: var(--primary-color);
    font-weight: 600;
}

.location-badge .position {
    color: var(--secondary-color);
    font-weight: 600;
}

/* 库存数量 */
.stock-quantity {
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 5px;
}

.stock-high {
    background: #d4edda;
    color: #155724;
}

.stock-medium {
    background: #fff3cd;
    color: #856404;
}

.stock-low {
    background: #f8d7da;
    color: #721c24;
}

/* 操作按钮组 */
.action-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

/* 页面标题 */
.page-title {
    color: white;
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
}

.page-title h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.page-title p {
    opacity: 0.9;
    font-size: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .nav-menu {
        flex-direction: column;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-input-group {
        width: 100%;
    }
    
    .search-btn {
        width: 100%;
    }
    
    .table th,
    .table td {
        padding: 8px;
    }
    
    .form-row {
        flex-direction: column;
    }
}
/* 位置出库页面专用样式 */
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 15px; }
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 15px; }
.mx-2 { margin-left: 10px; margin-right: 10px; }

/* 批量操作按钮组 */
.batch-btn-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

/* 货物卡片样式 */
.goods-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.goods-card:hover {
    border-color: #4CAF50;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.1);
}

.goods-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.goods-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.goods-meta {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 13px;
}

.goods-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.quantity-label {
    font-size: 12px;
    color: #666;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .goods-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .goods-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .quantity-controls {
        width: 100%;
        justify-content: space-between;
    }
}