/* Reset e Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Variables CSS */
:root {
    --primary: #003d82;
    --secondary: #ffd700;
    --accent: #0066cc;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #333;
    --border: #e9ecef;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.15);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Header */
.header {
    background: var(--primary);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    max-width: 100%;
}

.logo svg {
    display: block;
}

/* Menu Button */
.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-radius: 6px;
    transition: var(--transition);
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.menu-btn span {
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 1px;
    transition: var(--transition);
}

.menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: var(--transition);
}

.mobile-menu.active {
    visibility: visible;
    opacity: 1;
}

.menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: white;
    transform: translateX(100%);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.mobile-menu.active .menu-content {
    transform: translateX(0);
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.menu-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.close-btn:hover {
    background: var(--light);
}

.menu-list {
    flex: 1;
    list-style: none;
    padding: 20px 0;
}

.menu-list li {
    margin-bottom: 8px;
}

.menu-list a {
    display: block;
    padding: 12px 20px;
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border-radius: 0 24px 24px 0;
    margin-right: 20px;
}

.menu-list a:hover {
    background: var(--light);
    color: var(--primary);
}

.menu-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
}

.login-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
}

.login-btn:hover {
    background: var(--accent);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 32px 16px;
    text-align: center;
}

.hero-content h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 24px;
}

/* Tracking Card */
.tracking-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-top: 24px;
    box-shadow: var(--shadow);
    text-align: left;
}

.tracking-card h3 {
    color: var(--primary);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.input-group input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 16px;
    transition: var(--transition);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 61, 130, 0.1);
}

.track-btn {
    background: var(--secondary);
    border: none;
    border-radius: var(--radius);
    padding: 12px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
}

.track-btn:hover {
    background: #e6c200;
    transform: scale(1.05);
}

.track-btn:active {
    transform: scale(0.95);
}

.tracking-card small {
    color: #666;
    font-size: 14px;
}

/* Quick Actions */
.quick-actions {
    padding: 32px 16px;
}

.quick-actions h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    text-align: center;
}

.actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.action-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    text-decoration: none;
    color: var(--dark);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 2px solid transparent;
}

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

.action-card.primary {
    border-color: var(--primary);
}

.action-card.secondary {
    border-color: var(--secondary);
}

.action-card.accent {
    border-color: var(--accent);
}

.action-card.warning {
    border-color: var(--warning);
}

.card-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.action-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
}

.action-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* Main Content */
.main-content {
    padding: 0 16px 32px;
}

.content-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.article-header {
    padding: 24px 20px 20px;
    border-bottom: 1px solid var(--border);
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.badge.urgent {
    background: #fee;
    color: var(--danger);
}

.article-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.subtitle {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.article-body {
    padding: 20px;
}

.article-body p {
    margin-bottom: 16px;
    line-height: 1.6;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 20px;
    margin: 24px 0;
    position: relative;
}

.quote-icon {
    position: absolute;
    top: -8px;
    left: 16px;
    background: white;
    padding: 4px 8px;
    border-radius: 50%;
    font-size: 16px;
}

.highlight-box blockquote {
    font-style: italic;
    font-size: 16px;
    line-height: 1.5;
    margin-top: 8px;
}

.highlight-box cite {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    font-style: normal;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
}

.stat-item {
    text-align: center;
    padding: 16px;
    background: var(--light);
    border-radius: var(--radius);
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

/* Solution Section */
.solution-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    box-shadow: var(--shadow);
}

.solution-header {
    text-align: center;
    margin-bottom: 24px;
}

.solution-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.solution-header p {
    color: #666;
    font-size: 16px;
}

.solution-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.step-number {
    background: var(--primary);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.step-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
}

.cta-btn {
    background: linear-gradient(135deg, var(--success) 0%, #20c997 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: pulse 2s infinite;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(40, 167, 69, 0.3);
}

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

/* Footer */
.footer {
    background: var(--primary);
    color: white;
    padding: 32px 16px 20px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--secondary);
}

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

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    font-size: 12px;
    opacity: 0.7;
}

/* Responsive Design - Tablet */
@media (min-width: 768px) {
    .header-content {
        padding: 16px 24px;
    }
    
    .hero {
        padding: 48px 24px;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .quick-actions {
        padding: 48px 24px;
    }
    
    .actions-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .main-content {
        padding: 0 24px 48px;
    }
    
    .footer {
        padding: 48px 24px 24px;
    }
    
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Responsive Design - Desktop */
@media (min-width: 1024px) {
    .header-content,
    .hero-content,
    .quick-actions,
    .main-content,
    .footer-content {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .hero {
        padding: 64px 24px;
    }
    
    .hero-content h1 {
        font-size: 42px;
    }
    
    .tracking-card {
        max-width: 500px;
        margin: 32px auto 0;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --light: #1a1a1a;
        --dark: #ffffff;
        --border: #333;
    }
    
    body {
        background-color: #121212;
        color: white;
    }
    
    .tracking-card,
    .action-card,
    .content-card,
    .solution-section {
        background: #1e1e1e;
        border-color: #333;
    }
    
    .menu-content {
        background: #1e1e1e;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles */
button:focus,
input:focus,
a:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

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

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

