/* 现代化样式 */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #06b6d4;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --border-color: #e5e7eb;
    --text-color: #374151;
    --text-muted: #6b7280;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--text-color);
}

/* 导航栏样式 */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border: none !important;
    box-shadow: var(--shadow);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    transition: var(--transition);
    border-radius: 8px;
    margin: 0 4px;
    padding: 8px 16px !important;
}

.navbar-nav .nav-link:hover {
    background: var(--primary-color);
    color: white !important;
    transform: translateY(-1px);
}

/* 欢迎横幅 */
.welcome-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 80px 0;
    margin: -24px -15px 0 -15px;
    color: white;
    position: relative;
    overflow: hidden;
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.welcome-content {
    position: relative;
    z-index: 2;
}

.welcome-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    font-weight: 300;
}

.welcome-illustration {
    font-size: 8rem;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

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

/* 统计卡片 */
.stats-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: none;
    overflow: hidden;
}

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

.stats-card-body {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stats-label {
    color: var(--text-muted);
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.stats-icon {
    font-size: 3rem;
    opacity: 0.1;
}

.stats-footer {
    padding: 1rem 2rem;
    border-top: 1px solid var(--border-color);
    background: var(--light-color);
}

.stats-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.stats-link:hover {
    color: var(--primary-color);
}

.stats-trend {
    font-size: 0.875rem;
    font-weight: 500;
}

.stats-trend-up {
    color: var(--success-color);
}

.stats-trend-warning {
    color: var(--warning-color);
}

/* 颜色变体 */
.stats-card-primary .stats-number { color: var(--primary-color); }
.stats-card-primary .stats-icon { color: var(--primary-color); }

.stats-card-success .stats-number { color: var(--success-color); }
.stats-card-success .stats-icon { color: var(--success-color); }

.stats-card-warning .stats-number { color: var(--warning-color); }
.stats-card-warning .stats-icon { color: var(--warning-color); }

.stats-card-danger .stats-number { color: var(--danger-color); }
.stats-card-danger .stats-icon { color: var(--danger-color); }

/* 现代化卡片 */
.modern-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: none;
    transition: var(--transition);
}

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

.modern-card-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modern-card-title {
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    display: flex;
    align-items: center;
}

.modern-card-body {
    padding: 2rem;
}

/* 现代化表格 */
.table-modern {
    margin: 0;
}

.table-modern thead th {
    border: none;
    background: var(--light-color);
    color: var(--text-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    padding: 1rem 0.75rem;
}

.table-modern tbody td {
    border: none;
    padding: 1rem 0.75rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

.table-modern tbody tr {
    transition: var(--transition);
}

.table-modern tbody tr:hover {
    background: var(--light-color);
}

.quote-number {
    font-family: 'Monaco', 'Menlo', monospace;
    background: var(--light-color);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
}

.amount {
    font-weight: 700;
    color: var(--success-color);
}

/* 徽章样式 */
.badge {
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.badge-secondary {
    background: rgba(107, 114, 128, 0.1);
    color: var(--text-muted);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state h6 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.empty-state-small {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
}

.empty-state-small i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* 即将过期项目 */
.expiring-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    background: rgba(245, 158, 11, 0.05);
    border-left: 3px solid var(--warning-color);
    transition: var(--transition);
}

.expiring-item:hover {
    background: rgba(245, 158, 11, 0.1);
    transform: translateX(4px);
}

.expiring-customer {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.expiring-quote {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.expiring-date {
    font-size: 0.75rem;
    color: var(--warning-color);
    font-weight: 500;
}

/* 快捷操作 */
.quick-actions {
    display: grid;
    gap: 1rem;
}

.quick-action-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 8px;
    background: var(--light-color);
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    border: 1px solid transparent;
}

.quick-action-item:hover {
    background: white;
    box-shadow: var(--shadow);
    color: var(--text-color);
    border-color: var(--border-color);
    transform: translateY(-2px);
}

.quick-action-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 1.25rem;
}

.quick-action-content h6 {
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.quick-action-content p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* 按钮样式增强 */
.btn {
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
    border: none;
    padding: 0.75rem 1.5rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 2.5rem;
    }

    .welcome-illustration {
        font-size: 4rem;
        margin-top: 2rem;
    }

    .stats-card-body {
        padding: 1.5rem;
    }

    .modern-card-header {
        padding: 1rem 1.5rem;
    }

    .modern-card-body {
        padding: 1.5rem;
    }
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-container > * {
    animation: fadeInUp 0.6s ease-out;
}

.dashboard-container > *:nth-child(2) {
    animation-delay: 0.1s;
}

.dashboard-container > *:nth-child(3) {
    animation-delay: 0.2s;
}