/* Fret Flow Modern Frontend */

.fret-flow-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 100%;
    margin: 0 auto;
}

/* Table Styles */
.fret-flow-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    margin-bottom: 30px;
}

.fret-flow-table thead th {
    background: transparent;
    color: #8898aa;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 1px;
    padding: 15px 20px;
    border: none;
}

.fret-flow-table tbody tr {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
}

.fret-flow-table tbody tr:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.fret-flow-table td {
    padding: 20px;
    color: #525f7f;
    border: none;
    vertical-align: middle;
}

.fret-flow-table td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    font-weight: bold;
    color: #32325d;
}

.fret-flow-table td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    text-align: right;
}

/* Buttons */
.fret-flow-btn {
    display: inline-block;
    padding: 8px 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.fret-flow-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
    color: #fff;
}

/* Status Badges */
.fret-flow-badge {
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-transit {
    background: #e0f2fe;
    color: #0369a1;
}

.status-arrived {
    background: #dcfce7;
    color: #15803d;
}

.status-pending {
    background: #fef3c7;
    color: #b45309;
}

.status-delayed {
    background: #fee2e2;
    color: #b91c1c;
}

.status-default {
    background: #f3f4f6;
    color: #4b5563;
}

/* Detail View */
.fret-flow-detail-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.fret-flow-detail-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fret-flow-detail-header h2 {
    margin: 0;
    color: #32325d;
    font-size: 1.8em;
}

.fret-flow-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.fret-flow-info-item label {
    display: block;
    color: #8898aa;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.fret-flow-info-item span {
    color: #32325d;
    font-weight: 600;
    font-size: 1.1em;
}

/* Timeline */
.fret-flow-timeline-modern {
    position: relative;
    padding: 20px 0;
}

.fret-flow-timeline-modern:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: #e9ecef;
}

.fret-flow-timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 30px;
}

.fret-flow-timeline-marker {
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
    z-index: 1;
}

.fret-flow-timeline-content h4 {
    margin: 0 0 5px;
    color: #32325d;
}

.fret-flow-timeline-date {
    color: #8898aa;
    font-size: 0.9em;
    margin-bottom: 5px;
    display: block;
}

.fret-flow-timeline-desc {
    color: #525f7f;
}

.fret-flow-back-link {
    display: inline-block;
    margin-top: 20px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.fret-flow-back-link:hover {
    text-decoration: underline;
}