/* Main Container Styles */
.batch-tracker,
.batch-admin-dashboard {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 24px;
    margin: 20px 0;
}

/* Header Styles */
.batch-tracker-header,
.admin-header {
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.batch-tracker-header h2,
.admin-header h2 {
    margin: 0;
    color: #1e1e1e;
    font-size: 24px;
    font-weight: 600;
}

.batch-tracker-subtitle {
    color: #666;
    margin: 8px 0 0;
}

/* Table Styles */
.batch-tracker-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    margin: 16px 0;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.batch-tracker-table th {
    background: #f8fafc;
    color: #4a5568;
    font-weight: 600;
    padding: 16px;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.batch-tracker-table td {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #2d3748;
    font-size: 14px;
}

.batch-tracker-table tr:last-child td {
    border-bottom: none;
}

.batch-tracker-table tr:hover {
    background: #f7fafc;
}

/* Status Indicators */
.status-indicator,
.status-pill {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.status-on-schedule .status-indicator,
.status-pill.status-on-schedule {
    background: #ebf8ff;
    color: #2b6cb0;
}

.status-landed .status-indicator,
.status-pill.status-landed {
    background: #f0fff4;
    color: #2f855a;
}

.status-delayed .status-indicator,
.status-pill.status-delayed {
    background: #fff5f5;
    color: #c53030;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.track-button,
.edit-button,
.notify-button,
.add-new-button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.track-button {
    background: #3182ce;
    color: white;
}

.track-button:hover {
    background: #2b6cb0;
}

.edit-button,
.notify-button {
    padding: 6px;
    background: #edf2f7;
    color: #4a5568;
}

.edit-button:hover,
.notify-button:hover {
    background: #e2e8f0;
}

.add-new-button {
    background: #48bb78;
    color: white;
}

.add-new-button:hover {
    background: #38a169;
}

/* Stats Box */
.batch-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.stat-box {
    background: #f7fafc;
    border-radius: 6px;
    padding: 16px;
    text-align: center;
    min-width: 120px;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 600;
    color: #2d3748;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: #718096;
    margin-top: 4px;
}

/* Notification Badge */
.notification-badge {
    background: #e53e3e;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

/* Empty State */
.batch-tracker-empty {
    text-align: center;
    padding: 48px;
    color: #718096;
}

/* Login Required Message */
.login-required {
    text-align: center;
    padding: 32px;
    background: #f7fafc;
    border-radius: 6px;
    margin: 24px 0;
}

.login-required a {
    color: #3182ce;
    text-decoration: none;
    font-weight: 500;
}

.login-required a:hover {
    text-decoration: underline;
}

/* Error Message */
.error-message {
    background: #fff5f5;
    color: #c53030;
    padding: 16px;
    border-radius: 6px;
    border-left: 4px solid #e53e3e;
    margin: 16px 0;
}

/* Responsive Styles */
@media screen and (max-width: 782px) {
    .batch-tracker-table-container {
        overflow-x: auto;
        margin: 0 -24px;
        padding: 0 24px;
    }
    
    .batch-tracker-table {
        min-width: 800px;
    }
    
    .batch-stats {
        flex-direction: column;
    }
    
    .stat-box {
        width: 100%;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 4px;
    }
}
