/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --bg-light: #f9fafb;
    --bg-lighter: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 
                 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding: 16px;
    color: var(--text-dark);
    line-height: 1.6;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
}

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

/* 登录页面样式 */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 450px;
    position: relative;
}

.login-card {
    background: white;
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: var(--shadow-md);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.logo {
    font-size: 64px;
    margin-bottom: 16px;
}

.login-header h1 {
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.login-header p {
    color: var(--text-light);
    font-size: 15px;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.login-form {
    margin-bottom: 32px;
}

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

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 15px;
}

.form-group label .icon {
    font-size: 18px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-primary {
    background: var(--primary-gradient);
    width: 100%;
}

.btn-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
}

.login-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.login-footer p {
    color: var(--text-light);
    margin-bottom: 4px;
}

.login-footer .hint {
    font-size: 13px;
    color: var(--text-muted);
}

/* 背景粒子 - 简化版 */
.particles {
    display: none;
}

/* 头部样式 */
header {
    background: white;
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
}

header:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

header h1 {
    font-size: 26px;
    margin-bottom: 6px;
    color: var(--primary-color);
    font-weight: 600;
}

header p {
    color: var(--text-light);
    font-size: 14px;
}

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

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* 主要内容区域 */
main {
    margin-bottom: 30px;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 24px;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

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

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* 用户列表样式 */
.user-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.user-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 3px solid var(--primary-color);
}

.user-card:hover {
    box-shadow: var(--shadow-md);
}

.user-info h3 {
    font-size: 22px;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
}

.user-info p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-info p::before {
    content: '👤';
    font-size: 14px;
}

.user-date {
    color: var(--text-muted) !important;
    font-size: 12px !important;
}

.user-date::before {
    content: '📅';
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.empty-state::before {
    content: '📭';
    font-size: 80px;
    display: block;
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    animation: pulse 2s ease-in-out infinite;
}

.empty-state p {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-weight: 600;
}

.empty-state .hint {
    font-size: 14px;
    color: var(--text-muted);
    background: var(--bg-light);
    padding: 14px 24px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 16px;
    border: 1px solid var(--border-color);
}

/* 统计卡片网格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-md);
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    font-size: 48px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: var(--transition);
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-info {
    flex: 1;
    z-index: 1;
}

.stat-info h3 {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-values p {
    font-size: 14px;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-values p span {
    font-weight: 700;
    font-size: 16px;
}

.stat-values .income {
    color: var(--success-color);
    font-weight: 600;
}

.stat-values .income span {
    text-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.stat-values .expense {
    color: var(--danger-color);
    font-weight: 600;
}

.stat-values .expense span {
    text-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.stat-values .balance {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 15px;
    padding-top: 8px;
    border-top: 2px solid var(--border-color);
    margin-top: 6px;
}

.stat-values .balance span {
    font-size: 20px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

/* 收支趋势图 - 独占一行 */
.trend-section {
    margin-bottom: 24px;
}

.trend-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.trend-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.trend-card h3 {
    font-size: 20px;
    margin-bottom: 24px;
    color: var(--text-dark);
    font-weight: 600;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.trend-card canvas {
    max-height: 400px !important;
    width: 100% !important;
}

/* 图表网格 */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.chart-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.chart-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.chart-card h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-dark);
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-card canvas {
    max-height: 280px;
}

/* 交易记录部分 */
.transactions-section {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.transactions-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
}

.tab-btn {
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 14px;
    cursor: pointer;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 3px 3px 0 0;
    transition: var(--transition);
}

.tab-btn:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.tab-btn.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.tab-btn.active::after {
    transform: translateX(-50%) scaleX(1);
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 8px;
    transition: var(--transition);
    cursor: pointer;
}

.transaction-item:hover {
    background: var(--bg-light);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-info {
    flex: 1;
}

.transaction-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.transaction-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: var(--transition);
}

.transaction-item:hover .transaction-icon {
    transform: scale(1.1);
}

.transaction-category {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 15px;
}

.transaction-badge {
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.transaction-badge.income {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.transaction-badge.expense {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.transaction-description {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 4px;
}

.transaction-date {
    color: var(--text-muted);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.transaction-date::before {
    content: '🕒';
    font-size: 11px;
}

.transaction-amount {
    font-size: 20px;
    font-weight: 700;
    margin-right: 12px;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.transaction-amount.income {
    color: var(--success-color);
    text-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.transaction-amount.expense {
    color: var(--danger-color);
    text-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.loading {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
    font-size: 15px;
}

.loading::before {
    content: '⏳';
    display: block;
    font-size: 48px;
    margin-bottom: 16px;
    animation: pulse 1.5s ease-in-out infinite;
}

/* 页脚 */
footer {
    text-align: center;
    color: white;
    padding: 32px 24px;
    font-size: 14px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-top: 40px;
}

footer p {
    opacity: 0.95;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    header {
        padding: 20px;
        border-radius: 16px;
    }
    
    header h1 {
        font-size: 22px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .header-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .user-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .user-card {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .login-card {
        padding: 28px 20px;
    }
    
    .logo {
        font-size: 52px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-icon {
        font-size: 42px;
    }
    
    .chart-card,
    .trend-card,
    .transactions-section,
    .import-card {
        padding: 20px;
        border-radius: 16px;
    }
    
    .trend-card canvas {
        max-height: 250px !important;
    }
    
    .chart-card canvas {
        max-height: 220px !important;
    }
    
    .transaction-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 14px;
    }
    
    .transaction-amount {
        font-size: 18px;
        margin-right: 0;
        align-self: flex-end;
    }
    
    .filter-tabs {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .tab-btn {
        flex: 1;
        min-width: calc(33.333% - 8px);
    }
    
    /* 确保移动端输入框正常 */
    .form-input {
        font-size: 16px;
        -webkit-text-size-adjust: 100%;
    }
    
    .btn {
        padding: 10px 18px;
        font-size: 13px;
    }
}

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

.transactions-list::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 6px;
}

.transactions-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
}

.transactions-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #5568d3 0%, #653a8b 100%);
}

/* 工具提示 - 简化版 */
.tooltip {
    position: relative;
}

/* 徽章样式 */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

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

/* 卡片阴影层级 */
.card-elevated {
    box-shadow: var(--shadow-lg);
}

/* 渐变文字 */
.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 移动端优化 */
input, textarea, select {
    -webkit-user-select: text;
    user-select: text;
}

/* 防止iOS Safari自动缩放 */
@media screen and (max-width: 768px) {
    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="number"],
    textarea {
        font-size: 16px !important;
    }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* 渐入动画 */
.stats-grid .stat-card {
    animation: fadeIn 0.6s ease-out;
}

.stats-grid .stat-card:nth-child(1) {
    animation-delay: 0.1s;
}

.stats-grid .stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stats-grid .stat-card:nth-child(3) {
    animation-delay: 0.3s;
}

.chart-card, .trend-card, .import-card, .transactions-section {
    animation: fadeIn 0.6s ease-out;
}

/* 数字跳动效果 */
.count-up {
    display: inline-block;
    transition: all 0.3s ease;
}

/* 加载骨架屏 */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-light) 0%,
        var(--bg-lighter) 50%,
        var(--bg-light) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-title {
    height: 24px;
    width: 60%;
    margin-bottom: 12px;
}

/* 工具提示增强 */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    font-size: 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 1000;
}

[data-tooltip]::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
    opacity: 1;
}

[data-tooltip]:hover::before {
    transform: translateX(-50%) translateY(-12px);
}

/* 脉动效果 */
.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* 渐变背景动画 */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-animated {
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

/* 成功/错误消息动画 */
.message-enter {
    animation: slideInRight 0.4s ease-out;
}

/* 账单导入样式 */
.import-section {
    margin-bottom: 30px;
}

.import-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.import-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.import-card h3 {
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.import-card h3::before {
    font-size: 24px;
}

.import-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
    padding: 10px 14px;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.import-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.file-name {
    color: var(--primary-color);
    font-size: 14px;
    flex: 1;
    min-width: 200px;
    font-weight: 600;
    padding: 8px 12px;
    background: var(--bg-light);
    border-radius: 8px;
    transition: var(--transition);
}

.file-name:not(:empty) {
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.import-result {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 12px;
    animation: slideInRight 0.4s ease-out;
    border: 1px solid;
}

.import-result.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-color: #c3e6cb;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.import-result.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-color: #f5c6cb;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.import-result h4 {
    margin-bottom: 8px;
    font-size: 16px;
}

.import-result ul {
    margin-left: 20px;
    font-size: 14px;
}

.import-result ul li {
    margin: 4px 0;
}

@media screen and (max-width: 768px) {
    .import-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .file-name {
        min-width: auto;
    }
    
    .import-form button {
        width: 100%;
    }
}
