/* 奔驰ML350保养管理系统 - 公共样式 */

:root {
    --mercedes-dark: #0A0A0A;
    --mercedes-gray: #1A1A1A;
    --mercedes-light: #2A2A2A;
    --mercedes-silver: #C0C0C0;
    --mercedes-accent: #0066CC;
    --mercedes-gold: #D4AF37;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
}

.text-shadow {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.bg-gradient-mercedes {
    background: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 50%, #2A2A2A 100%);
}

.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.15);
}

.card-shadow {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.progress-bar {
    transition: width 0.5s ease-in-out;
}

.expand-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.expand-content.open {
    max-height: 500px;
}

.rotate-icon {
    transition: transform 0.3s ease;
}

.rotate-icon.open {
    transform: rotate(180deg);
}

.table-row-hover:hover {
    background-color: rgba(0, 102, 204, 0.08) !important;
}

.batch-total-row {
    background-color: rgba(212, 175, 55, 0.1) !important;
    font-weight: 700;
}

.batch-separator {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.02);
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.slide-up {
    animation: slideUp 0.6s ease-out forwards;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slideUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-completed {
    background-color: rgba(16, 185, 129, 0.2);
    color: #10B981;
}

.status-normal {
    background-color: rgba(59, 130, 246, 0.2);
    color: #3B82F6;
}

.status-warning {
    background-color: rgba(245, 158, 11, 0.2);
    color: #F59E0B;
}

.status-danger {
    background-color: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

.dark-table {
    width: 100%;
    border-collapse: collapse;
}

.dark-table th {
    background-color: rgba(42, 42, 42, 0.8);
    color: #C0C0C0;
    font-weight: 500;
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dark-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #E5E5E5;
}

.dark-table tr:hover {
    background-color: rgba(0, 102, 204, 0.05);
}

.mobile-card {
    display: none;
}

@media (max-width: 768px) {
    .mobile-card {
        display: block;
    }
    .desktop-table {
        display: none;
    }
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link.active {
    color: #ffffff;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--mercedes-accent);
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 102, 204, 0.05) 100%);
    border: 1px solid rgba(0, 102, 204, 0.2);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.quick-action-btn:hover {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.2) 0%, rgba(0, 102, 204, 0.1) 100%);
    border-color: rgba(0, 102, 204, 0.4);
    transform: translateY(-4px);
}

.stat-card {
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.8) 0%, rgba(26, 26, 26, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(0, 102, 204, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.alert-card {
    border-left: 4px solid;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

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

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

.alert-info {
    border-left-color: var(--info);
    background-color: rgba(59, 130, 246, 0.1);
}

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