/* assets/css/style.css */

:root {
    --primary: #0b1f3b;     /* Deep navy */
    --accent: #00b8a9;      /* Teal */
    --accent2: #ffb400;     /* Amber */
    --bg: #f4f7fb;
    --card-bg: #ffffff;
    --text: #222222;
    --muted: #6b7280;
    --border: #e5e7eb;
    --radius: 12px;
    --shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top left, #e0f7f6 0, var(--bg) 40%, #e5edff 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Layout */

.page-wrapper {
    max-width: 1080px;
    margin: 0 auto;
    padding: 24px 16px 48px;
    flex: 1;
}

/* Header / nav */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 8px 18px rgba(0, 184, 169, 0.35);
}

.logo-text-main {
    font-weight: 800;
    font-size: 20px;
    color: var(--primary);
    letter-spacing: 0.03em;
}

.logo-text-sub {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    gap: 18px;
    font-size: 14px;
}

.nav-links a {
    color: var(--muted);
    font-weight: 500;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--primary);
    border-color: var(--accent);
    text-decoration: none;
}

/* Main content */

.hero {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 28px;
    align-items: center;
    margin-bottom: 32px;
}

.hero-title {
    font-size: 32px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
}

.hero-highlight {
    color: var(--accent);
}

.hero-subtitle {
    color: var(--muted);
    font-size: 14px;
    max-width: 480px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 184, 169, 0.08);
    color: var(--accent);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
}

.hero-card {
    background: var(--card-bg);
    border-radius: 18px;
    padding: 20px 18px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(15, 23, 42, 0.03);
}

.hero-card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--primary);
}

.hero-card-subtitle {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 14px;
}

/* Tracking form */

.tracking-form label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 6px;
}

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

.tracking-input-group input[type="text"] {
    flex: 1;
    padding: 12px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 14px;
    outline: none;
}

.tracking-input-group input[type="text"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(0, 184, 169, 0.2);
}

.btn-primary {
    border: none;
    border-radius: 999px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: white;
    box-shadow: 0 10px 20px rgba(0, 184, 169, 0.45);
    white-space: nowrap;
}

.btn-primary:hover {
    filter: brightness(1.05);
}

.helper-text {
    margin-top: 7px;
    font-size: 11px;
    color: var(--muted);
}

/* Feature grid (home page) */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.feature-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.feature-body {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

/* Status pill */

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;
    font-weight: 600;
}

/* Tracking page */

.page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.page-subtitle {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 20px;
}

.alert-error {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #b91c1c;
    font-size: 12px;
    margin-bottom: 12px;
}

/* Tracking detail page layout */

.tracking-layout {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 18px;
    margin-top: 18px;
}

.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.22);
}

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

.meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 4px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.data-table th,
.data-table td {
    padding: 6px 4px;
    text-align: left;
}

.data-table th {
    color: var(--muted);
    font-weight: 500;
    width: 35%;
}

.data-table tr:nth-child(odd) {
    background: #f9fafb;
}

/* Timeline */

.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 12px;
}

.timeline-item {
    position: relative;
    padding-left: 20px;
    padding-bottom: 12px;
}

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

.timeline-item::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 4px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 184, 169, 0.25);
}

.timeline-item::after {
    content: "";
    position: absolute;
    left: 10px;
    top: 14px;
    width: 2px;
    bottom: -4px;
    background: #e5e7eb;
}

.timeline-item:last-child::after {
    display: none;
}

.timeline-label {
    font-weight: 600;
    color: var(--primary);
}

.timeline-meta {
    color: var(--muted);
}

/* Contact page */

.contact-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 18px;
}

.contact-form-group {
    margin-bottom: 10px;
}

.contact-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--primary);
}

.contact-form-group input,
.contact-form-group textarea {
    width: 100%;
    padding: 9px 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 13px;
    resize: vertical;
}

.contact-form-group textarea {
    min-height: 100px;
}

/* Footer */

.site-footer {
    font-size: 11px;
    color: var(--muted);
    text-align: center;
    padding: 16px 0 24px;
}

/* Error pages */

.error-wrapper {
    max-width: 480px;
    margin: 40px auto 0;
}

.error-code {
    font-size: 40px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.error-message {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 18px;
}

/* Responsive */

@media (max-width: 768px) {
    .hero,
    .tracking-layout,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .nav-links {
        gap: 12px;
        flex-wrap: wrap;
    }

    .hero-title {
        font-size: 26px;
    }
}
