/* =============================================================================
   CFPIP Track Feedback Page - Advanced Tracking System Styles
   ============================================================================= */

/* Navigation Fallback Styles - Ensure nav works properly */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px; /* fallback for var(--nav-height) */
    background: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-bottom: 1px solid #e2e8f0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: #006747;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.brand-info {
    display: flex;
    flex-direction: column;
}

/* Let track.css control the brand color via .brand-title (var(--primary) = #006747) */
.brand-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

.brand-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    line-height: 1;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: #475569;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.nav-link:hover {
    background: #f1f5f9;
    color: #006747;
}

.nav-link.active {
    background: rgba(0, 103, 71, 0.1);
    color: #006747;
}

.nav-link i {
    font-size: 1rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.lang-switch:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.officer-login {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #006747;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.officer-login:hover {
    background: #004a32;
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 3px;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.mobile-toggle span {
    width: 20px;
    height: 2px;
    background: #475569;
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #e2e8f0;
        gap: 0.5rem;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-link {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Main Content Wrapper */
.main-content {
    padding-top: 80px; /* fallback for var(--nav-height) */
    min-height: calc(100vh - 80px);
}

/* Main Content Styles for Track Page */
.track-section {
    padding: var(--space-16) 0;
    background: var(--white);
    min-height: 80vh;
}

.track-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.track-visual {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto var(--space-8);
    border-radius: var(--radius-full);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid var(--primary-light);
}

.track-visual-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 103, 71, 0.9);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    color: var(--white);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

.track-title {
    font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-4);
    line-height: 1.2;
}

.track-subtitle {
    font-size: var(--text-lg);
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Search Container */
.search-container {
    max-width: 600px;
    margin: 0 auto var(--space-16);
    position: relative;
}

.track-form {
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    padding: var(--space-8);
    position: relative;
}

.search-input-group {
    display: flex;
    align-items: center;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.search-input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 103, 71, 0.1);
}

.search-input {
    flex: 1;
    padding: var(--space-4) var(--space-6);
    border: none;
    background: transparent;
    font-size: var(--text-lg);
    font-weight: 500;
    outline: none;
    color: var(--gray-800);
}

.search-input::placeholder {
    color: var(--gray-500);
    font-weight: normal;
}

.search-btn {
    padding: var(--space-4) var(--space-6);
    background: var(--primary);
    color: var(--white);
    border: none;
    font-size: var(--text-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.search-btn:hover {
    background: var(--dark-green);
    transform: translateX(2px);
}

.search-help {
    display: block;
    margin-top: var(--space-3);
    font-size: var(--text-sm);
    color: var(--gray-500);
    text-align: center;
}

/* Track Results */
.track-results {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: var(--space-8);
    animation: fadeInUp 0.5s ease-out;
}

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

/* Feedback Details Card */
.feedback-details-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-6);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.feedback-title {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.feedback-id {
    padding: var(--space-1) var(--space-3);
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    font-family: var(--font-mono);
}

.card-body {
    padding: var(--space-6);
}

.feedback-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.info-item label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.info-item span {
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--gray-800);
}

.feedback-description {
    border-top: 1px solid var(--gray-200);
    padding-top: var(--space-4);
}

.feedback-description h4 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: var(--space-3);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.feedback-description p {
    color: var(--gray-700);
    line-height: 1.7;
    margin: 0;
}

/* Status Timeline Card */
.status-timeline-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.timeline-title {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.current-status {
    padding: var(--space-2) var(--space-4);
    background: var(--warning);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
}

/* Timeline */
.timeline {
    padding: var(--space-6);
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    position: relative;
    padding-bottom: var(--space-8);
}

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

.timeline-marker {
    position: relative;
    z-index: 1;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    flex-shrink: 0;
    transition: all var(--transition-normal);
}

.timeline-item.completed .timeline-marker {
    background: var(--success);
    color: var(--white);
    box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.1);
}

.timeline-item.active .timeline-marker {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 103, 71, 0.1);
    animation: timelinePulse 2s infinite;
}

.timeline-item.pending .timeline-marker {
    background: var(--gray-200);
    color: var(--gray-500);
}

@keyframes timelinePulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(0, 103, 71, 0.1);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(0, 103, 71, 0.05);
    }
}

.timeline-content {
    flex: 1;
    padding-top: var(--space-2);
}

.timeline-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-2);
}

.timeline-description {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: var(--space-3);
}

.timeline-date {
    font-size: var(--text-sm);
    color: var(--gray-500);
    font-weight: 500;
}

/* Response Card */
.response-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    border-left: 4px solid var(--success);
}

.response-title {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.response-date {
    padding: var(--space-1) var(--space-3);
    background: var(--success);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
}

.response-content {
    color: var(--gray-700);
    line-height: 1.7;
}

.response-content p {
    margin-bottom: var(--space-4);
}

.response-content p:last-child {
    margin-bottom: 0;
}

/* Rating Card */
.rating-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    border-left: 4px solid var(--accent);
}

.rating-title {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.rating-question {
    font-size: var(--text-lg);
    color: var(--gray-700);
    margin-bottom: var(--space-6);
    text-align: center;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
}

.star {
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    font-size: var(--text-2xl);
    color: var(--gray-300);
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: var(--radius);
}

.star:hover,
.star.active {
    color: var(--warning);
    transform: scale(1.1);
}

.rating-comment {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.comment-textarea {
    width: 100%;
    padding: var(--space-4);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: var(--text-base);
    resize: vertical;
    min-height: 100px;
    outline: none;
    transition: border-color var(--transition-normal);
}

.comment-textarea:focus {
    border-color: var(--primary);
}

/* Track Actions */
.track-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-8);
    flex-wrap: wrap;
}

/* Error Message */
.error-message {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    padding: var(--space-8);
    text-align: center;
    border-left: 4px solid var(--danger);
    animation: fadeInUp 0.5s ease-out;
}

.error-icon {
    width: 80px;
    height: 80px;
    background: rgba(231, 76, 60, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-6);
    font-size: var(--text-3xl);
    color: var(--danger);
}

.error-content h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-4);
}

.error-content p {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: var(--space-6);
}

.error-tips {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    text-align: left;
}

.error-tips h4 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--space-3);
}

.error-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-tips li {
    padding: var(--space-2) 0;
    color: var(--gray-700);
    position: relative;
    padding-left: var(--space-6);
}

.error-tips li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--danger);
    font-weight: bold;
}

/* Sample IDs */
.sample-ids {
    margin-top: var(--space-16);
    text-align: center;
}

.sample-title {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--space-6);
}

.sample-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-4);
    max-width: 900px;
    margin: 0 auto;
}

.sample-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
}

.sample-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.sample-card strong {
    font-family: var(--font-mono);
    font-size: var(--text-lg);
    color: var(--primary);
}

.sample-card span {
    font-size: var(--text-sm);
    color: var(--gray-600);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius);
    font-size: var(--text-base);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--transition-normal);
}

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

.btn-primary:hover {
    background: var(--dark-green);
    transform: translateY(-1px);
}

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

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

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

/* Footer Styles - Missing from modern-styles.css */
.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.footer-section h4 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-4);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: var(--space-2);
}

.footer-section ul li a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-section ul li a:hover {
    color: var(--white);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
}

.footer-logo-text {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--white);
}

.footer-description {
    color: var(--gray-400);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--gray-400);
    margin: 0;
}

.contact-info i {
    color: var(--primary);
    width: 16px;
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: var(--space-6);
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-500);
    font-size: var(--text-sm);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .track-section {
        padding: var(--space-12) 0;
    }
    
    .track-visual {
        width: 150px;
        height: 150px;
    }
    
    .track-icon-overlay {
        width: 45px;
        height: 45px;
        font-size: var(--text-lg);
    }
    
    .search-container {
        margin-bottom: var(--space-12);
    }
    
    .track-form {
        padding: var(--space-6);
    }
    
    .search-input-group {
        flex-direction: column;
        border-radius: var(--radius-lg);
    }
    
    .search-input {
        border-bottom: 1px solid var(--gray-200);
        border-radius: 0;
    }
    
    .search-btn {
        width: 100%;
        justify-content: center;
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }
    
    .feedback-info {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-marker {
        width: 40px;
        height: 40px;
        font-size: var(--text-base);
    }
    
    .timeline-item {
        gap: var(--space-3);
    }
    
    .track-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .sample-grid {
        grid-template-columns: 1fr;
    }
    
    .error-message {
        padding: var(--space-6);
    }
    
    .rating-stars {
        gap: var(--space-1);
    }
    
    .star {
        width: 40px;
        height: 40px;
        font-size: var(--text-xl);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        text-align: center;
    }
    
    .footer-section {
        margin-bottom: var(--space-6);
    }
    
    .contact-info {
        align-items: center;
    }
}

/* Advanced Tracking System Styles */

/* Tracking-specific Loading Screen */
.tracking-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.tracking-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.tracking-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    color: white;
}

.logo-radar {
    width: 120px;
    height: 120px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radar-ring {
    width: 100%;
    height: 100%;
    border: 3px solid rgba(66, 153, 225, 0.3);
    border-radius: 50%;
    position: absolute;
    animation: radarPulse 2s infinite;
}

.radar-sweep {
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: conic-gradient(transparent, transparent, #4299e1, transparent);
    position: absolute;
    animation: radarSweep 3s linear infinite;
}

.radar-blip {
    width: 12px;
    height: 12px;
    background: #48bb78;
    border-radius: 50%;
    position: absolute;
    top: 20%;
    right: 30%;
    animation: blipPulse 1.5s infinite;
    box-shadow: 0 0 20px #48bb78;
}

@keyframes radarPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

@keyframes radarSweep {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes blipPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

.logo-text h2 {
    margin: 0 0 0.5rem 0;
    font-size: 2.5rem;
    font-weight: 800;
    color: #4299e1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.logo-text p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.2rem;
    color: #e2e8f0;
}

.tracking-progress {
    min-width: 600px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 2rem;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 15%;
    right: 15%;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%);
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.step-item.active .step-icon {
    background: #4299e1;
    border-color: #4299e1;
    color: white;
    animation: stepGlow 2s infinite;
}

.step-item.completed .step-icon {
    background: #48bb78;
    border-color: #48bb78;
    color: white;
}

@keyframes stepGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(66, 153, 225, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(66, 153, 225, 0); }
}

.step-item span {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    transition: color 0.3s ease;
}

.step-item.active span {
    color: #4299e1;
    font-weight: 600;
}

.step-item.completed span {
    color: #48bb78;
    font-weight: 600;
}

/* Tracking Body Layout */
.tracking-body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    margin: 0;
    overflow-x: hidden;
    min-height: 100vh;
}

.tracking-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Tracking Header */
.tracking-header {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 4px 20px rgba(45, 55, 72, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.header-left {
    flex-shrink: 0;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-icon {
    width: 50px;
    height: 50px;
    background: rgba(66, 153, 225, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #4299e1;
    border: 2px solid rgba(66, 153, 225, 0.3);
}

.brand-info h1 {
    margin: 0 0 0.25rem 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.brand-info p {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.8;
    color: #cbd5e0;
}

.header-center {
    flex: 1;
    max-width: 600px;
}

.search-container {
    position: relative;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    border-color: #4299e1;
    box-shadow: 0 0 0 4px rgba(66, 153, 225, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.125rem;
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: transparent;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-btn {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    border: none;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: linear-gradient(135deg, #3182ce, #2b6cb0);
    transform: translateX(2px);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.search-suggestions.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f7fafc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggestion-item:hover {
    background: #f7fafc;
}

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

.suggestion-item i {
    color: #a0aec0;
    font-size: 1rem;
}

.suggestion-item span {
    font-weight: 600;
    color: #2d3748;
}

.suggestion-item small {
    margin-left: auto;
    color: #718096;
    font-size: 0.75rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    color: white;
    text-decoration: none;
}

.lang-toggle:hover {
    background: rgba(66, 153, 225, 0.2);
    border-color: rgba(66, 153, 225, 0.4);
}

.flag-icon {
    font-size: 1.125rem;
}

.lang-label {
    font-weight: 500;
    font-size: 0.875rem;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-weight: 500;
}

.back-btn:hover {
    background: rgba(72, 187, 120, 0.2);
    border-color: rgba(72, 187, 120, 0.4);
    text-decoration: none;
    color: white;
}

/* Main Tracking Content */
.tracking-main {
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

/* Initial State */
.initial-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state h2 {
    margin: 2rem 0 1rem 0;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
}

.empty-state p {
    margin: 0 0 3rem 0;
    color: #718096;
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.quick-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.feature-item {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(66, 153, 225, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #4299e1;
    margin: 0 auto 1.5rem auto;
}

.feature-item h4 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
}

.feature-item p {
    margin: 0;
    color: #718096;
    line-height: 1.5;
}

.demo-btn-container {
    margin-top: 3rem;
}

.demo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.3);
}

.demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(66, 153, 225, 0.4);
    background: linear-gradient(135deg, #3182ce, #2b6cb0);
}

/* Tracking Results */
.tracking-results {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Case Header */
.case-header {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.case-info {
    flex: 1;
}

.case-id {
    margin-bottom: 1.5rem;
}

.case-id h2 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    font-family: 'Courier New', monospace;
}

.case-status {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.pending {
    background: rgba(237, 137, 54, 0.1);
    color: #c05621;
    border: 1px solid rgba(237, 137, 54, 0.3);
}

.status-badge.in-progress {
    background: rgba(66, 153, 225, 0.1);
    color: #2b6cb0;
    border: 1px solid rgba(66, 153, 225, 0.3);
}

.status-badge.resolved {
    background: rgba(72, 187, 120, 0.1);
    color: #2f855a;
    border: 1px solid rgba(72, 187, 120, 0.3);
}

.case-priority {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.case-priority.high {
    background: rgba(245, 101, 101, 0.1);
    color: #c53030;
    border: 1px solid rgba(245, 101, 101, 0.3);
}

.case-priority.medium {
    background: rgba(237, 137, 54, 0.1);
    color: #c05621;
    border: 1px solid rgba(237, 137, 54, 0.3);
}

.case-priority.low {
    background: rgba(72, 187, 120, 0.1);
    color: #2f855a;
    border: 1px solid rgba(72, 187, 120, 0.3);
}

.case-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #718096;
}

.meta-item i {
    color: #4299e1;
}

.meta-item strong {
    color: #2d3748;
    font-weight: 600;
}

.case-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn.primary {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
}

.action-btn.primary:hover {
    background: linear-gradient(135deg, #3182ce, #2b6cb0);
    transform: translateY(-1px);
}

.action-btn.secondary {
    background: #edf2f7;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.action-btn.secondary:hover {
    background: #e2e8f0;
    color: #2d3748;
}

/* Progress Overview */
.progress-overview {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.progress-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 12px;
    border-left: 4px solid #4299e1;
    transition: all 0.3s ease;
}

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

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(66, 153, 225, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #4299e1;
    flex-shrink: 0;
}

.stat-icon.success {
    background: rgba(72, 187, 120, 0.1);
    color: #48bb78;
}

.stat-icon.warning {
    background: rgba(237, 137, 54, 0.1);
    color: #ed8936;
}

.stat-icon.info {
    background: rgba(128, 90, 213, 0.1);
    color: #805ad5;
}

.stat-content h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #2d3748;
}

.stat-content p {
    margin: 0;
    color: #718096;
    font-size: 0.875rem;
    font-weight: 500;
}

.progress-bar-container {
    position: relative;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4299e1, #48bb78);
    border-radius: 4px;
    transition: width 0.8s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #718096;
    font-weight: 500;
}

/* Timeline Section */
.timeline-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.section-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-header h3 i {
    color: #4299e1;
    font-size: 1.25rem;
}

.timeline-controls {
    display: flex;
    gap: 0.5rem;
}

.timeline-filter {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #718096;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.timeline-filter:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
}

.timeline-filter.active {
    background: #4299e1;
    border-color: #4299e1;
    color: white;
}

.timeline-container {
    position: relative;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

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

/* Timeline items will be populated by JavaScript */
.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    background: #fafafa;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid #4299e1;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 1.5rem;
    width: 12px;
    height: 12px;
    background: #4299e1;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #4299e1;
}

.timeline-item.update::before {
    background: #48bb78;
    box-shadow: 0 0 0 2px #48bb78;
}

.timeline-item.communication::before {
    background: #805ad5;
    box-shadow: 0 0 0 2px #805ad5;
}

/* Communication Section */
.communication-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.add-message-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-message-btn:hover {
    background: linear-gradient(135deg, #3182ce, #2b6cb0);
    transform: translateY(-1px);
}

.stakeholders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.stakeholder-card {
    background: #f7fafc;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.stakeholder-avatar {
    position: relative;
    flex-shrink: 0;
}

.stakeholder-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(66, 153, 225, 0.2);
}

.avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(66, 153, 225, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #4299e1;
    border: 3px solid rgba(66, 153, 225, 0.2);
}

.status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid white;
}

.status-dot.online {
    background: #48bb78;
    animation: pulse 2s infinite;
}

.status-dot.away {
    background: #ed8936;
}

.status-dot.offline {
    background: #cbd5e0;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.stakeholder-info {
    flex: 1;
}

.stakeholder-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
}

.stakeholder-info p {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    color: #4a5568;
}

.stakeholder-info small {
    font-size: 0.75rem;
    color: #718096;
}

.stakeholder-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.contact-btn, .call-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.contact-btn {
    background: rgba(66, 153, 225, 0.1);
    color: #4299e1;
}

.contact-btn:hover {
    background: rgba(66, 153, 225, 0.2);
}

.call-btn {
    background: rgba(72, 187, 120, 0.1);
    color: #48bb78;
}

.call-btn:hover {
    background: rgba(72, 187, 120, 0.2);
}

/* AI Insights Section */
.ai-insights-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.insight-card {
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.insight-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.insight-card.prediction {
    background: linear-gradient(135deg, rgba(128, 90, 213, 0.03), rgba(128, 90, 213, 0.01));
    border-left: 4px solid #805ad5;
}

.insight-card.analysis {
    background: linear-gradient(135deg, rgba(66, 153, 225, 0.03), rgba(66, 153, 225, 0.01));
    border-left: 4px solid #4299e1;
}

.insight-card.recommendation {
    background: linear-gradient(135deg, rgba(237, 137, 54, 0.03), rgba(237, 137, 54, 0.01));
    border-left: 4px solid #ed8936;
}

.insight-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.insight-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

.insight-card.prediction .insight-icon {
    background: rgba(128, 90, 213, 0.1);
    color: #805ad5;
}

.insight-card.analysis .insight-icon {
    background: rgba(66, 153, 225, 0.1);
    color: #4299e1;
}

.insight-card.recommendation .insight-icon {
    background: rgba(237, 137, 54, 0.1);
    color: #ed8936;
}

.insight-header h4 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #2d3748;
}

.prediction-date {
    margin-bottom: 1rem;
}

.date-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.confidence {
    font-size: 0.875rem;
    color: #805ad5;
    font-weight: 600;
}

.analysis-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
}

.stat-label {
    font-size: 0.75rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recommendation-priority {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.recommendation-priority.high {
    background: rgba(245, 101, 101, 0.1);
    color: #c53030;
    border: 1px solid rgba(245, 101, 101, 0.2);
}

.insight-content p {
    margin: 0;
    color: #4a5568;
    line-height: 1.6;
}

/* Communication Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
}

.modal-close {
    background: none;
    border: none;
    color: #a0aec0;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f7fafc;
    color: #4a5568;
}

.modal-body {
    padding: 2rem;
    max-height: calc(80vh - 120px);
    overflow-y: auto;
}

.communication-interface {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.officer-info {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 12px;
}

.officer-avatar {
    flex-shrink: 0;
}

.officer-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(66, 153, 225, 0.2);
}

.officer-details h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
}

.officer-details p {
    margin: 0 0 1rem 0;
    color: #4a5568;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #718096;
}

.contact-info i {
    color: #4299e1;
}

.message-composer {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.message-type-selector {
    display: flex;
    gap: 0.5rem;
    background: #f7fafc;
    padding: 0.5rem;
    border-radius: 10px;
}

.type-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #718096;
    font-size: 0.875rem;
    font-weight: 500;
}

.type-btn:hover {
    background: white;
    color: #4a5568;
}

.type-btn.active {
    background: white;
    color: #4299e1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.type-btn i {
    font-size: 1.125rem;
}

.message-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#message-text {
    width: 100%;
    height: 120px;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.875rem;
    resize: vertical;
    background: white;
    transition: border-color 0.2s ease;
}

#message-text:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

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

.attach-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.attach-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.send-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 600;
}

.send-btn:hover {
    background: linear-gradient(135deg, #3182ce, #2b6cb0);
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-content {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
    }

    .header-center {
        order: -1;
        max-width: none;
    }

    .case-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }

    .case-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .case-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .tracking-main {
        padding: 1rem;
    }

    .progress-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .progress-labels {
        font-size: 0.75rem;
    }

    .quick-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stakeholders-grid {
        grid-template-columns: 1fr;
    }

    .insights-grid {
        grid-template-columns: 1fr;
    }

    .analysis-stats {
        justify-content: space-around;
    }

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline::before {
        left: 0.75rem;
    }

    .timeline-item::before {
        left: -2rem;
    }

    .modal-content {
        width: 95%;
        margin: 1rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .officer-info {
        flex-direction: column;
        text-align: center;
    }

    .message-type-selector {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .case-header {
        padding: 1.5rem;
    }

    .case-id h2 {
        font-size: 1.5rem;
    }

    .case-status {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .progress-stats {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-content h3 {
        font-size: 1.5rem;
    }

    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .timeline-controls {
        justify-content: center;
        flex-wrap: wrap;
    }

    .empty-state h2 {
        font-size: 2rem;
    }

    .empty-state p {
        font-size: 1rem;
    }
}