/* 
 * CSS Grid & Flexbox Architecture for Tracking Module 
 * Location: where/assets/css/tracking.css
 */

.tracking-container {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 2rem;
    min-height: 60vh;
}

.search-section {
    text-align: center;
    margin-bottom: 3rem;
}

.search-section h1 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.tracking-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.tracking-form input {
    padding: 1rem;
    font-size: 1.1rem;
    border: 2px solid #ccc;
    border-radius: 6px;
    transition: border-color var(--transition-speed) ease;
}

.tracking-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.tracking-form button {
    padding: 1rem;
    font-size: 1.1rem;
    background-color: var(--primary-color);
    color: var(--bg-color);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.tracking-form button:hover {
    background-color: #1b263b;
}

/* Dynamic Result UI */
.hidden {
    display: none !important;
}

.status-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-top: 4px solid var(--primary-color);
}

.status-card h2 {
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.highlight {
    color: #38b000;
    font-weight: 800;
}

/* CSS Grid for Data Display */
.details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    font-size: 1.1rem;
}

.detail-item strong {
    color: #415a77;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.error-message {
    background-color: #ff4d4d;
    color: white;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    margin-top: 2rem;
}

/* Responsive Grid Shift */
@media (min-width: 600px) {
    .tracking-form {
        flex-direction: row;
    }
    
    .tracking-form input {
        flex: 1;
    }
    
    .tracking-form button {
        width: 150px;
    }

    .details-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* --- NEW ADDITIONS FOR PREDEFINED NOTES & MAP FRAME --- */

.predefined-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.note-chip {
    background-color: #f1f3f5;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.note-chip:hover,
.note-chip:focus {
    background-color: #0f172a; /* Use var(--primary-color) if available */
    color: white;
    border-color: #0f172a;
    outline: none;
}

.map-frame-container {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
    background-color: #f8f9fa;
}

.map-frame-container iframe {
    display: block;
    width: 100%;
    height: 350px;
    border: none;
}