/* Customer Portal Styles */

:root {
    --customer-primary: #4f46e5;
    --customer-sidebar-width: 260px;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
}

.main-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Sidebar */
.bg-white.border-end {
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
}

.nav-link {
    transition: all 0.2s ease;
    border-radius: 0.375rem;
    margin: 0.125rem 0.5rem;
}

.nav-link:hover {
    background-color: #f8f9fa;
    transform: translateX(4px);
}

.nav-link.active {
    background-color: #eef2ff;
    color: var(--customer-primary) !important;
    font-weight: 600;
}

/* Cards */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
}

.timeline-item {
    position: relative;
    padding-bottom: 24px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -26px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #6c757d;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #e9ecef;
}

.timeline-item.completed .timeline-marker {
    background: #22c55e;
    box-shadow: 0 0 0 2px #dcfce7;
}

.timeline-item.active .timeline-marker {
    background: var(--customer-primary);
    box-shadow: 0 0 0 2px #eef2ff;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(79, 70, 229, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
    }
}

.timeline-content {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
    border-left: 3px solid #e9ecef;
}

.timeline-item.completed .timeline-content {
    border-left-color: #22c55e;
    background: #f0fdf4;
}

.timeline-item.active .timeline-content {
    border-left-color: var(--customer-primary);
    background: #eef2ff;
}

/* Progress bars */
.progress {
    border-radius: 0.5rem;
}

.progress-bar {
    transition: width 0.6s ease;
}

/* Tables */
.table {
    vertical-align: middle;
}

.table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #6c757d;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.35rem 0.65rem;
    border-radius: 0.375rem;
}

/* Dropdowns */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    :root {
        --customer-sidebar-width: 100%;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Rich text editor */
.ql-editor {
    min-height: 200px;
    font-size: 1rem;
}

.ql-toolbar {
    border-radius: 0.375rem 0.375rem 0 0;
}

.ql-container {
    border-radius: 0 0 0.375rem 0.375rem;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}
