/* 使用设备页面样式 */

/* 页面整体样式 */
.equipment-use-container {
    margin: 20px 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* 搜索表单样式 */
.search-form-equipment {
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    color: white;
    position: relative;
    overflow: hidden;
}

.search-form-equipment:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    z-index: 1;
}

.search-form-equipment .form-inline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.search-form-equipment .form-group {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.9);
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-form-equipment label {
    margin-bottom: 0;
    font-weight: 600;
    color: #495057;
    margin-right: 10px;
}

.search-form-equipment .form-control {
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    background: transparent;
    box-shadow: none;
    transition: all 0.3s ease;
}

.search-form-equipment .form-control:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
}

/* 表格容器样式 */
.table-container-equipment {
    margin: 25px 0;
    overflow-x: auto;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    background: white;
}

/* 表格样式 */
.equipment-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 14px;
    min-width: 800px;
}

.equipment-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.equipment-table td {
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
}

.equipment-table tr {
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.equipment-table tr:nth-child(even) {
    background: #f8f9fa;
}

.equipment-table tr:hover {
    background: #f1f3ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 单元格样式优化 */
.id-cell {
    width: 60px;
    text-align: center;
    font-weight: 600;
    color: #667eea;
}

.name-cell {
    min-width: 120px;
    max-width: 200px;
}

.code-cell {
    min-width: 100px;
    max-width: 150px;
    font-family: 'Courier New', monospace;
}

.status-cell {
    width: 80px;
    text-align: center;
}

.date-cell {
    width: 140px;
    text-align: center;
}

.action-cell {
    width: 120px;
    text-align: center;
}

/* 状态标签样式 */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-available {
    background: #d4edda;
    color: #155724;
}

.status-in-use {
    background: #fff3cd;
    color: #856404;
}

.status-maintenance {
    background: #f8d7da;
    color: #721c24;
}

/* 按钮样式 */
.btn-equipment {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    margin: 2px;
}

.btn-equipment:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-equipment:hover:before {
    left: 100%;
}

.btn-equipment:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.btn-equipment:active {
    transform: translateY(0);
}

.btn-primary-equipment {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary-equipment:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-outline-equipment {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.1);
}

.btn-outline-equipment:hover {
    background: #667eea;
    color: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

/* 特殊按钮样式 */
.btn-home-equipment {
    background: linear-gradient(135deg, #fd746c 0%, #ff9068 100%);
    color: white;
    border: none;
}

.btn-home-equipment:hover {
    background: linear-gradient(135deg, #e8655d 0%, #e8805d 100%);
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .search-form-equipment .form-inline {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-form-equipment .form-group {
        margin-bottom: 10px;
    }
    
    .equipment-table {
        font-size: 12px;
    }
    
    .equipment-table th,
    .equipment-table td {
        padding: 10px 12px;
    }
}

/* 分页样式 */
.pagination-equipment {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    gap: 10px;
}

.pagination-equipment .page-item {
    list-style: none;
}

.pagination-equipment .page-link {
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    text-decoration: none;
    color: #667eea;
    transition: all 0.3s ease;
}

.pagination-equipment .page-link:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination-equipment .page-item.active .page-link {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state .empty-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.empty-state .empty-text {
    font-size: 16px;
    margin-bottom: 20px;
}

/* 工具提示样式 */
.tooltip-equipment {
    position: relative;
    display: inline-block;
}

.tooltip-equipment .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}

.tooltip-equipment:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}