/* ============================================
   Muslat Express - Complete Stylesheet
   Public + Worker + Admin shared base
   ============================================ */

:root {
    --gradient-start: #E74C3C;
    --gradient-mid: #F39C12;
    --gradient-end: #FFA500;
    --text: #333333;
    --bg: #F8F9FA;
    --card-bg: #ffffff;
    --border: #E9ECEF;
    --success: #28a745;
    --danger: #dc3545;
    --info: #17a2b8;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius: 10px;
    --radius-sm: 6px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== PUBLIC HEADER ===== */
.site-header {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.lang-switcher {
    display: flex;
    gap: 8px;
}

.lang-switcher a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.lang-switcher a.active,
.lang-switcher a:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

/* Flash Message */
.flash-msg {
    padding: 14px 18px;
    border-radius: var(--radius);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    margin: 16px 0;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== HERO / TRACK ===== */
.hero {
    text-align: center;
    padding: 32px 0 24px;
}

.hero h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}

.hero-sub {
    font-size: 14px;
    color: #888;
    margin-bottom: 24px;
}

.track-form {
    display: flex;
    gap: 10px;
    max-width: 480px;
    margin: 0 auto;
}

.track-input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 16px;
    color: var(--text);
    background: var(--card-bg);
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
}

.track-input:focus {
    outline: none;
    border-color: var(--gradient-mid);
    box-shadow: 0 0 0 3px rgba(243,156,18,0.15);
}

/* Buttons */
.btn-gradient {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
    -webkit-appearance: none;
    text-decoration: none;
}

.btn-gradient:active {
    transform: scale(0.97);
    opacity: 0.9;
}

.btn-full {
    width: 100%;
    margin-top: 8px;
}

.btn-small {
    padding: 12px 20px;
    font-size: 14px;
    white-space: nowrap;
}

/* Track Result */
.track-result {
    display: none;
    margin-top: 24px;
    text-align: left;
}

.track-result.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-empty {
    text-align: center;
    padding: 32px;
    color: #888;
    font-size: 15px;
}

.result-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
    color: #fff;
}

.result-label {
    font-size: 12px;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-value {
    font-size: 18px;
    font-weight: 700;
    margin-top: 2px;
}

.result-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.result-info {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.result-info span {
    color: #888;
    font-weight: 500;
}

/* Timeline */
.timeline {
    padding: 20px;
}

.timeline h4 {
    font-size: 14px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.timeline-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 8px 0;
    position: relative;
    opacity: 0.45;
    transition: opacity 0.3s;
}

.timeline-step.done {
    opacity: 1;
}

.timeline-step.current {
    opacity: 1;
}

.timeline-step.current .timeline-dot {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
    box-shadow: 0 0 0 4px rgba(243,156,18,0.2);
}

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--border);
    flex-shrink: 0;
    margin-top: 4px;
    transition: all 0.3s;
}

.timeline-step.done .timeline-dot {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
}

.timeline-content {
    flex: 1;
}

.timeline-status {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.timeline-time {
    font-size: 12px;
    color: #aaa;
    margin-top: 2px;
}

.timeline-note {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
    font-style: italic;
}

/* Sections */
.section {
    padding: 28px 0;
    border-top: 1px solid var(--border);
}

.section-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 20px;
}

/* Forms */
.add-form {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}

.form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    color: var(--text);
    background: var(--bg);
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gradient-mid);
    box-shadow: 0 0 0 3px rgba(243,156,18,0.12);
    background: var(--card-bg);
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Rate Card */
.rate-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
}

.rate-route {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    grid-column: 1 / -1;
}

.rate-cat {
    font-size: 13px;
    color: #888;
}

.rate-weight {
    font-size: 12px;
    color: #aaa;
    text-align: right;
}

.rate-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--gradient-start);
    grid-column: 1 / -1;
    text-align: right;
}

/* News Card */
.news-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}

.news-date {
    font-size: 12px;
    color: #aaa;
    font-weight: 500;
}

/* Footer */
.site-footer {
    background: var(--text);
    color: rgba(255,255,255,0.6);
    padding: 20px 0;
    margin-top: 32px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-inner p {
    font-size: 13px;
}

.staff-link {
    color: rgba(255,255,255,0.35);
    font-size: 12px;
    text-decoration: none;
    transition: color 0.2s;
}

.staff-link:hover {
    color: rgba(255,255,255,0.7);
}

/* ===== WORKER STYLES ===== */
.worker-body {
    background: #f0f1f3;
    padding-bottom: 24px;
}

.worker-header {
    background: linear-gradient(135deg, #E74C3C, #F39C12, #FFA500);
    padding: 14px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.worker-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 600px;
    margin: 0 auto;
}

.worker-role {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.worker-name {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-logout {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.worker-main {
    max-width: 600px;
    margin: 0 auto;
    padding: 16px;
}

.box-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    text-align: center;
    margin-bottom: 16px;
}

.box-number {
    font-size: 24px;
    font-weight: 800;
    color: #333;
    margin-bottom: 6px;
}

.box-status {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.box-meta {
    font-size: 13px;
    color: #999;
}

.box-empty {
    font-size: 18px;
    font-weight: 600;
    color: #bbb;
    margin-bottom: 6px;
}

.pkg-list {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 16px;
    overflow: hidden;
}

.pkg-item {
    padding: 14px 18px;
    border-bottom: 1px solid #f0f0f0;
    animation: slideIn 0.3s ease;
}

.pkg-item:last-child {
    border-bottom: none;
}

.pkg-tn {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    font-family: 'SF Mono', Monaco, monospace;
}

.pkg-info {
    font-size: 13px;
    color: #888;
    margin-top: 3px;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.dest-grid {
    grid-template-columns: 1fr;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
    border: none;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
    -webkit-appearance: none;
}

.action-btn:active {
    transform: scale(0.96);
}

.action-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.action-label {
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.btn-create { border-top: 4px solid #28a745; }
.btn-scan { border-top: 4px solid #F39C12; }
.btn-seal { border-top: 4px solid #17a2b8; }
.btn-ship { border-top: 4px solid #E74C3C; }
.btn-arrive { border-top: 4px solid #28a745; }
.btn-deliver { border-top: 4px solid #E74C3C; }

.manual-section {
    margin-top: 8px;
}

.manual-toggle {
    text-align: center;
    font-size: 14px;
    color: #888;
    padding: 12px;
    cursor: pointer;
    user-select: none;
}

.manual-form {
    display: flex;
    gap: 8px;
    background: #fff;
    padding: 14px;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    animation: slideDown 0.2s ease;
}

.manual-form input,
.manual-form select {
    flex: 1;
    padding: 12px 14px;
    border: 2px solid #E9ECEF;
    border-radius: 10px;
    font-size: 16px;
    -webkit-appearance: none;
}

.manual-form input:focus,
.manual-form select:focus {
    outline: none;
    border-color: #F39C12;
}

.scanner-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.scanner-overlay {
    background: #1a1a1a;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    overflow: hidden;
}

.scanner-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.scanner-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
}

#reader {
    width: 100% !important;
    min-height: 300px;
}

#reader video {
    border-radius: 0 !important;
}

.scanner-hint {
    text-align: center;
    color: #888;
    font-size: 13px;
    padding: 12px;
}

.dest-welcome {
    text-align: center;
    padding: 20px 0;
}

.dest-welcome h2 {
    font-size: 22px;
    font-weight: 800;
    color: #333;
    margin-bottom: 6px;
}

.dest-welcome p {
    font-size: 14px;
    color: #888;
}

.recent-section {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 16px;
}

.recent-section h3 {
    font-size: 14px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.recent-list {
    max-height: 280px;
    overflow-y: auto;
}

.recent-empty {
    text-align: center;
    color: #ccc;
    font-size: 14px;
    padding: 20px;
}

.recent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.recent-item:last-child {
    border-bottom: none;
}

.recent-type {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

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

.recent-status {
    font-size: 12px;
    font-weight: 700;
}

.recent-time {
    font-size: 12px;
    color: #bbb;
}

.recent-count {
    font-size: 11px;
    color: #F39C12;
    font-weight: 600;
}

/* ===== ADMIN STYLES ===== */
.admin-body {
    display: flex;
    min-height: 100vh;
    background: #f4f5f7;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.admin-sidebar {
    width: 260px;
    background: #1a1d29;
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 200;
}

.sidebar-brand {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    font-size: 28px;
}

.brand-text {
    font-size: 18px;
    font-weight: 800;
    background: linear-gradient(135deg, #E74C3C, #F39C12, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    margin-bottom: 4px;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: linear-gradient(135deg, rgba(231,76,60,0.2), rgba(243,156,18,0.15));
    color: #fff;
}

.sidebar-link.active {
    box-shadow: 0 0 0 1px rgba(243,156,18,0.3);
}

.sidebar-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    background: #fff;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-topbar h1 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1d29;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: #666;
}

.admin-content {
    padding: 24px 32px;
    flex: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border-left: 4px solid #ddd;
}

.stat-primary { border-left-color: #E74C3C; }
.stat-success { border-left-color: #28a745; }
.stat-warning { border-left-color: #F39C12; }
.stat-info { border-left-color: #17a2b8; }
.stat-accent { border-left-color: #FFA500; }

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: #1a1d29;
    line-height: 1.2;
}

.stat-label {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    overflow: hidden;
}

.panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.admin-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.admin-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.admin-table th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
}

.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f5f5f5;
    color: #444;
}

.admin-table tr:hover td {
    background: #fafafa;
}

.admin-table code {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 12px;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
}

.admin-table-full {
    min-width: 100%;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}

.actions {
    white-space: nowrap;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.btn-icon:hover {
    background: #f0f0f0;
}

.btn-danger:hover {
    background: #fee;
}

.btn-sm {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-secondary {
    background: #e9ecef;
    color: #666;
    border: none;
    cursor: pointer;
}

.link-sm {
    font-size: 13px;
    color: #F39C12;
    text-decoration: none;
    font-weight: 600;
}

.link-sm:hover {
    text-decoration: underline;
}

.filter-bar {
    margin-bottom: 20px;
}

.filter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-input,
.filter-select {
    padding: 10px 14px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    min-width: 180px;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #F39C12;
}

.pagination {
    display: flex;
    gap: 6px;
    padding: 16px;
    justify-content: center;
}

.pagination a {
    padding: 8px 14px;
    border-radius: 6px;
    background: #f0f0f0;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.pagination a.active,
.pagination a:hover {
    background: linear-gradient(135deg, #E74C3C, #F39C12);
    color: #fff;
}

.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.admin-form {
    padding: 20px;
}

.admin-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.admin-form .form-group {
    margin-bottom: 0;
}

.admin-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 6px;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    font-family: inherit;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    outline: none;
    border-color: #F39C12;
}

.form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 16px;
}

.lang-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 8px;
}

.lang-tab {
    padding: 8px 16px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.lang-tab.active,
.lang-tab:hover {
    background: linear-gradient(135deg, #E74C3C, #F39C12);
    color: #fff;
}

.lang-panel {
    display: none;
}

.lang-panel.active {
    display: block;
}

.rate-row {
    position: relative;
    padding-right: 40px;
}

.activity-list {
    padding: 16px;
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    font-size: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 8px;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.activity-meta {
    font-size: 12px;
    color: #aaa;
    margin-top: 2px;
}

.activity-detail {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-content {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal-lg {
    max-width: 900px;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.modal-close {
    font-size: 20px;
    color: #888;
    text-decoration: none;
    padding: 4px;
}

.modal-body {
    padding: 20px 24px;
}

.modal-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 14px;
}

.chart-container {
    padding: 20px;
    height: 350px;
}

.frozen {
    opacity: 0.6;
    background: #fafafa;
}

/* Responsive */
@media (max-width: 1024px) {
    .admin-sidebar {
        width: 200px;
    }
    .admin-main {
        margin-left: 200px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .admin-grid-2,
    .admin-grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        display: none;
    }
    .admin-main {
        margin-left: 0;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .admin-content {
        padding: 16px;
    }
    .admin-topbar {
        padding: 12px 16px;
    }
    .filter-form {
        flex-direction: column;
    }
    .filter-input,
    .filter-select {
        width: 100%;
    }
    .admin-form .form-row {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 640px) {
    .container {
        max-width: 800px;
        padding: 0 24px;
    }
    .hero h1 {
        font-size: 32px;
    }
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .rate-card {
        grid-template-columns: 1fr auto auto;
    }
    .rate-route {
        grid-column: 1;
    }
    .rate-price {
        grid-column: auto;
    }
    .action-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dest-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .container {
        max-width: 960px;
    }
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
