/* 供应商门户交期管理系统 - 自定义样式 */

:root {
    --primary-color: #4285f4;
    --secondary-color: #34a853;
    --warning-color: #fbbc04;
    --danger-color: #ea4335;
    --light-bg: #f8f9fa;
    --dark-text: #202124;
    --border-color: #dadce0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
}

/* 导航栏样式 */
.navbar-brand {
    font-weight: 600;
    color: var(--primary-color) !important;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: white !important;
}

/* 卡片样式 */
.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    margin-bottom: 20px;
}

.card-header {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    padding: 1rem 1.5rem;
}

/* 主页横幅样式 */
.hero-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a73e8 100%);
    color: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    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="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="white" opacity="0.1"/><circle cx="10" cy="90" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

/* 统计卡片样式 */
.stats-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 8px;
    background: white;
    transition: transform 0.2s ease;
}

.stats-card:hover {
    transform: translateY(-2px);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stats-label {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stats-change {
    font-size: 0.8rem;
}

.stats-change.positive {
    color: var(--secondary-color);
}

.stats-change.negative {
    color: var(--danger-color);
}

.stats-change.neutral {
    color: #666;
}

/* 表格样式 */
.table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    color: var(--dark-text);
}

.table tbody tr:hover {
    background-color: rgba(66, 133, 244, 0.05);
}

/* 状态标签样式 */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-confirmed {
    background-color: #e8f5e8;
    color: #2e7d32;
}

.status-partial {
    background-color: #fff3e0;
    color: #f57c00;
}

.status-pending {
    background-color: #ffebee;
    color: #c62828;
}

.status-unconfirmed {
    background-color: #f5f5f5;
    color: #616161;
}

/* 按钮样式 */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 6px;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
}

.btn-primary:hover {
    background-color: #3367d6;
    border-color: #3367d6;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 6px;
    font-weight: 500;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 表单样式 */
.form-control {
    border-radius: 6px;
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(66, 133, 244, 0.25);
}

/* 日历样式 */
.calendar {
    background: white;
    border-radius: 8px;
    padding: 1rem;
}

.calendar-header {
    text-align: center;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.calendar-day {
    background: white;
    padding: 0.75rem;
    text-align: center;
    font-size: 0.9rem;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-day.header {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #666;
}

.calendar-day.today {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.calendar-day.has-delivery {
    background-color: #fff3e0;
    color: #f57c00;
    font-weight: 500;
}

.calendar-day.overdue {
    background-color: #ffebee;
    color: #c62828;
    font-weight: 500;
}

/* 快速操作面板 */
.quick-actions {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
}

.quick-actions h5 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.quick-action-btn {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
    text-align: left;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--dark-text);
    text-decoration: none;
    transition: all 0.2s ease;
}

.quick-action-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    text-decoration: none;
}

/* 登录页面样式 */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #666;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
    
    .calendar-day {
        padding: 0.5rem;
        font-size: 0.8rem;
        min-height: 35px;
    }
}

@media (max-width: 576px) {
    .hero-banner {
        padding: 1.5rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .stats-card {
        padding: 1rem;
    }
    
    .stats-number {
        font-size: 1.8rem;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(66, 133, 244, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 模态框样式 */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

/* 提示信息样式 */
.alert {
    border-radius: 8px;
    border: none;
    padding: 1rem 1.5rem;
}

.alert-success {
    background-color: #e8f5e8;
    color: #2e7d32;
}

.alert-warning {
    background-color: #fff3e0;
    color: #f57c00;
}

.alert-danger {
    background-color: #ffebee;
    color: #c62828;
}

.alert-info {
    background-color: #e3f2fd;
    color: #1976d2;
} 