/* 苹果安全库存管理系统 - 主样式文件 */

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f7;
    color: #1d1d1f;
    line-height: 1.5;
    overflow-x: hidden;
}

/* 主应用容器 */
.app-container {
    min-height: 100vh;
    background: #f5f5f7;
}

/* 侧边栏样式 */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
}

.logo i {
    color: #007aff;
    font-size: 24px;
}

.nav-menu {
    list-style: none;
    padding: 24px 0;
}

.nav-item {
    margin-bottom: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: #1d1d1f;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 0 16px;
}

.nav-link:hover {
    background: rgba(0, 122, 255, 0.1);
    color: #007aff;
}

.nav-link.active {
    background: #007aff;
    color: white;
}

.nav-link i {
    width: 20px;
    text-align: center;
}

/* 主内容区域 */
.main-content {
    margin-left: 280px;
    padding: 24px;
    min-height: 100vh;
}

/* 页面标题 */
.page-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1d1d1f;
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #007aff;
    color: white;
}

.btn:hover {
    background: #0056cc;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f2f2f7;
    color: #1d1d1f;
}

.btn-secondary:hover {
    background: #e5e5ea;
}

.btn-danger {
    background: #ff3b30;
}

.btn-danger:hover {
    background: #d70015;
}

/* 表格样式 */
.table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.table th,
.table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #1d1d1f;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table tbody tr:hover {
    background: rgba(0, 122, 255, 0.02);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 16px;
    }
    
    .card {
        padding: 16px;
    }
    
    .table-container {
        font-size: 14px;
    }
    
    .table th,
    .table td {
        padding: 12px 8px;
    }
}

/* 工具类 */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }

.p-0 { padding: 0; }
.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; } 