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

:root {
    --primary-color: #00d4ff;
    --secondary-color: #0099ff;
    --accent-color: #7b2ff7;
    --dark-bg: #0a0e27;
    --darker-bg: #060a1e;
    --card-bg: #151937;
    --hover-bg: #1e2449;
    --border-color: #2d3561;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --success-color: #00ff88;
    --danger-color: #ff3366;
    --warning-color: #ffb800;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 背景粒子效果 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

/* 容器相对定位 */
.header,
.container {
    position: relative;
    z-index: 1;
}

/* 顶部Header - Logo居中 */
.header {
    background: linear-gradient(135deg, rgba(21, 25, 55, 0.95) 0%, rgba(10, 14, 39, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-color);
    padding: 20px 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.15);
    position: relative;
    z-index: 100;
}

.header::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--accent-color), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 95%;
    width: 100%;
    position: relative;
}

.user-info {
    position: absolute;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

#current-user-display {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 15px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 8px;
    border: 1px solid var(--primary-color);
}

.btn-logout {
    padding: 10px 20px;
    background: rgba(255, 51, 102, 0.2);
    border: 2px solid var(--danger-color);
    color: var(--danger-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-settings {
    padding: 10px 20px;
   background: rgb(191 164 171 / 20%);
   border: 2px solid #58a2ec;
   color: #a69498;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: var(--danger-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.4);
}

#logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

#logo-img {
    height: auto;
    max-height: 60px;
    min-width: 200px;
    max-width: 800px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
    transition: all 0.3s ease;
    cursor: pointer;
}

.default-logo-text {
    font-size: 50px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
    padding: 0 10px;
}

#logo-img:hover,
.default-logo-text:hover {
    filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.6));
    transform: scale(1.05);
}

.btn-upload-logo {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(123, 47, 247, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-upload-logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-upload-logo:hover::before {
    width: 300px;
    height: 300px;
}

.btn-upload-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 47, 247, 0.5);
}

.search-container {
    display: flex;
    gap: 12px;
    align-items: center;
}

#search-input {
    width: 320px;
    padding: 12px 20px;
    background: rgba(45, 53, 97, 0.5);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

#search-input::placeholder {
    color: var(--text-secondary);
}

#search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(45, 53, 97, 0.8);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.search-container button {
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--darker-bg);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.search-container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.5);
}

/* 主容器 */
.container {
    display: flex;
    height: calc(100vh - 82px);
}

/* 左侧边栏 */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--card-bg) 0%, var(--darker-bg) 100%);
    color: var(--text-primary);
    overflow-y: auto;
    border-right: 1px solid var(--border-color);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--primary-color), transparent);
    animation: slide 3s infinite;
}

@keyframes slide {
    0%, 100% { transform: translateY(-100%); }
    50% { transform: translateY(100%); }
}

.sidebar-header {
    padding: 25px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(123, 47, 247, 0.1));
}

.sidebar-header h3 {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-add-category {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--darker-bg);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 22px;
    font-weight: bold;
    line-height: 1;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-add-category:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.5);
}

.category-list {
    list-style: none;
    padding: 10px 0;
}

.category-item {
    padding: 16px 20px;
    margin: 8px 12px;
    cursor: pointer;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.category-item[draggable="true"] {
    cursor: move;
}

.category-item.drag-over {
    border: 2px dashed var(--primary-color);
    background: rgba(0, 212, 255, 0.15);
    transform: scale(1.02);
}

.drag-handle {
    cursor: grab;
    color: var(--text-secondary);
    font-size: 16px;
    margin-right: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    user-select: none;
}

.drag-handle:active {
    cursor: grabbing;
}

.category-item:hover .drag-handle {
    opacity: 1;
}

.category-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.category-item:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.category-item:hover::before {
    transform: scaleY(1);
}

.category-item.active {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(123, 47, 247, 0.2));
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

.category-item.active::before {
    transform: scaleY(1);
}

.category-item span {
    font-weight: 500;
    font-size: 15px;
}

.category-item .delete-btn {
    background: rgba(255, 51, 102, 0.2);
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
    cursor: pointer;
    font-size: 18px;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.category-item:hover .delete-btn {
    opacity: 1;
}

.category-item .delete-btn:hover {
    background: var(--danger-color);
    color: white;
    transform: scale(1.1);
}

/* 主内容区 */
.main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background: var(--dark-bg);
    position: relative;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(123, 47, 247, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.toolbar {
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.toolbar-filters {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-select {
    padding: 12px 20px;
    background: rgba(45, 53, 97, 0.5);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    cursor: pointer;
    min-width: 120px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(45, 53, 97, 0.8);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.filter-select option {
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 10px;
}

.filter-select-inline {
    margin-left: 8px;
    padding: 4px 8px;
    background: rgba(45, 53, 97, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 11px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    cursor: pointer;
    vertical-align: middle;
    display: inline-block;
}

.filter-select-inline:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(45, 53, 97, 0.9);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.filter-select-inline option {
    background: var(--card-bg);
    color: var(--text-primary);
}

/* 按钮样式 */
.btn-primary {
    padding: 14px 35px;
    background: linear-gradient(135deg, var(--success-color), var(--primary-color));
    color: var(--darker-bg);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 255, 136, 0.5);
}

.btn-secondary {
    padding: 14px 35px;
    background: rgba(160, 174, 192, 0.2);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(160, 174, 192, 0.3);
    border-color: var(--text-secondary);
    transform: translateY(-2px);
}

/* 表格样式 */
.table-container {
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.goods-table {
    width: 100%;
    border-collapse: collapse;
    background-color: transparent;
    table-layout: fixed;
}

.goods-table thead {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(123, 47, 247, 0.15));
    border-bottom: 2px solid var(--primary-color);
}

.goods-table th,
.goods-table td {
    padding: 18px 20px;
    text-align: left;
}

/* 列宽设置 */
.goods-table th:nth-child(1),
.goods-table td:nth-child(1) { width: 18%; } /* 商品名 */

.goods-table th:nth-child(2),
.goods-table td:nth-child(2) { width: 16%; } /* 新/二手 */

.goods-table th:nth-child(3),
.goods-table td:nth-child(3) { width: 18%; } /* 描述 */

.goods-table th:nth-child(4),
.goods-table td:nth-child(4) { width: 12%; } /* 单价 */

.goods-table th:nth-child(5),
.goods-table td:nth-child(5) { width: 10%; } /* 库存数量 */

.goods-table th:nth-child(6),
.goods-table td:nth-child(6) { width: 12%; } /* 金额 */

.goods-table th:nth-child(7),
.goods-table td:nth-child(7) { width: 16%; } /* 操作 */

.goods-table th {
    font-weight: 700;
    font-size: 14px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    white-space: nowrap;
}

/* 排序按钮样式 */
.sort-btn {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 4px 8px;
    margin-left: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    vertical-align: middle;
}

.sort-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

.sort-btn:active {
    transform: scale(0.95);
}

.goods-table th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.goods-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
    transition: all 0.3s ease;
    word-wrap: break-word;
    overflow: hidden;
}

.goods-table tbody tr {
    transition: all 0.3s ease;
    position: relative;
}

.goods-table tbody tr:hover {
    background: rgba(0, 212, 255, 0.05);
    transform: translateX(5px);
}

.goods-table tbody tr:hover::before {
    transform: scaleX(1);
}

.goods-table tbody tr:hover td {
    color: var(--text-primary);
}

.goods-table tfoot {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 212, 255, 0.1));
    font-weight: bold;
    border-top: 2px solid var(--success-color);
}

.goods-table tfoot td {
    color: var(--success-color);
    font-size: 16px;
    padding: 20px;
    border-bottom: none;
}

.goods-table tfoot td:first-child {
    color: var(--primary-color);
}

#total-quantity {
    color: var(--warning-color) !important;
    font-weight: 700;
}

#total-amount {
    color: var(--success-color) !important;
    font-weight: 700;
    font-size: 18px;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-edit, .btn-delete {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-edit {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--darker-bg);
    box-shadow: 0 3px 10px rgba(0, 153, 255, 0.3);
}

.btn-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 153, 255, 0.5);
}

.btn-delete {
    background: linear-gradient(135deg, var(--danger-color), #ff1744);
    color: white;
    box-shadow: 0 3px 10px rgba(255, 51, 102, 0.3);
}

.btn-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 51, 102, 0.5);
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 10, 30, 0.85);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--darker-bg) 100%);
    margin: 3% auto;
    padding: 0;
    border-radius: 20px;
    width: 650px;
    max-width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 212, 255, 0.1);
    border: 1px solid var(--border-color);
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-small {
    width: 450px;
}

.modal-header {
    padding: 25px 35px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(123, 47, 247, 0.2));
    border-bottom: 2px solid var(--primary-color);
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--accent-color), transparent);
}

.modal-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close {
    color: var(--text-secondary);
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.close:hover {
    color: var(--danger-color);
    background: rgba(255, 51, 102, 0.1);
    transform: rotate(90deg);
}

/* 表单样式 */
form {
    padding: 35px;
}

.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(45, 53, 97, 0.5);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: var(--text-secondary);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(45, 53, 97, 0.8);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 10px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.empty-state img {
    width: 140px;
    opacity: 0.3;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.3));
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
    border: 2px solid var(--darker-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--secondary-color), var(--primary-color));
}

/* 加载动画 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.8), 0 0 30px rgba(123, 47, 247, 0.5);
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .sidebar {
        width: 240px;
    }
    
    #search-input {
        width: 320px;
    }
}

/* Toast 通知 */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    min-width: 200px;
    max-width: 360px;
    background: linear-gradient(135deg, rgba(21,25,55,0.95), rgba(10,14,39,0.95));
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.6), 0 0 18px rgba(0,212,255,0.06);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    animation: toastIn 0.32s ease;
}

.toast.info { border-left: 4px solid var(--primary-color); }
.toast.success { border-left: 4px solid var(--success-color); }
.toast.error { border-left: 4px solid var(--danger-color); }

@keyframes toastIn {
    from { transform: translateY(-8px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* 更紧凑的模态框用于提示/确认 */
.modal .modal-content.modal-small {
    width: 420px;
    max-width: 92%;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        max-height: 200px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    #search-input {
        width: 100%;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}
