* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f6fa;
    color: #2d3436;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background: #1a1a2e;
    color: #fff;
    padding: 16px 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.header-user {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-display {
    font-size: 0.9rem;
    opacity: 0.85;
}

.btn-logout {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.5);
    color: #fff;
    padding: 5px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
}

.btn-logout:hover {
    background: rgba(255,255,255,0.1);
}

.logo {
    height: 50px;
    background: #fff;
    padding: 4px 8px;
    border-radius: 4px;
}

.header-text h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.header-text p {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0;
    background: #fff;
    border-bottom: 2px solid #e0e0e0;
    padding: 0 32px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.tab {
    padding: 12px 24px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.95rem;
    color: #636e72;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.tab:hover {
    color: #2d3436;
    background: #f8f9fa;
}

.tab.active {
    color: #0984e3;
    border-bottom-color: #0984e3;
    font-weight: 600;
}

/* Main Content */
main {
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 24px 32px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 1.25rem;
}

.refresh-indicator {
    font-size: 0.8rem;
    color: #636e72;
    background: #dfe6e9;
    padding: 4px 10px;
    border-radius: 12px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    margin-top: 16px;
}

thead {
    background: #2d3436;
    color: #fff;
}

th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

td.empty {
    text-align: center;
    padding: 32px;
    color: #b2bec3;
    font-style: italic;
}

tbody tr:hover {
    background: #f8f9fa;
}

/* Status Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-submitted    { background: #74b9ff; color: #fff; }
.badge-eta          { background: #fdcb6e; color: #2d3436; }
.badge-instructions { background: #00b894; color: #fff; }
.badge-delayed      { background: #d63031; color: #fff; }
.badge-forwarded    { background: #6c5ce7; color: #fff; }
.badge-processing   { background: #e17055; color: #fff; }
.badge-completed    { background: #00695c; color: #fff; }

/* Forms */
.form-card {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: #2d3436;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #dfe6e9;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #0984e3;
    box-shadow: 0 0 0 3px rgba(9,132,227,0.1);
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

.help-text {
    display: block;
    font-size: 0.8rem;
    color: #636e72;
    margin-top: 4px;
}

.file-info {
    font-size: 0.8rem;
    color: #636e72;
    margin-top: 4px;
    display: block;
}

/* Buttons */
.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #0984e3;
    color: #fff;
}

.btn-primary:hover {
    background: #0770c2;
}

.btn-primary:disabled {
    background: #b2bec3;
    cursor: not-allowed;
}

.btn-forward {
    background: #6c5ce7;
    color: #fff;
    padding: 6px 14px;
    font-size: 0.8rem;
}

.btn-forward:hover {
    background: #5a4bd1;
}

.btn-forward:disabled {
    background: #b2bec3;
    cursor: not-allowed;
}

.btn-forward .countdown {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.9;
}

.result-msg {
    margin-top: 12px;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    display: none;
}

.result-msg.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.result-msg.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
footer {
    background: #1a1a2e;
    color: #fff;
    text-align: center;
    padding: 16px;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Transaction ID */
.txn-id {
    font-family: "Courier New", monospace;
    font-size: 0.8rem;
    color: #0984e3;
}
