:root {
    --primary: #0a1628;
    --primary-light: #132038;
    --accent: #00bcd4;
    --accent2: #7c4dff;
    --success: #4caf50;
    --warning: #ff9800;
    --danger: #f44336;
    --info: #2196f3;
    --text: #e0e0e0;
    --text-dark: #333;
    --bg-dark: #0d1b2a;
    --bg-card: #1b2838;
    --border: #2a3a4a;
    --gradient: linear-gradient(135deg, #0a1628 0%, #1a3a5c 50%, #00838f 100%);
}

* { box-sizing: border-box; }

body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin: 0; background: #f0f2f5; }

/* NAVBAR */
.navbar-top {
    background: var(--gradient);
    padding: 0 20px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}
.navbar-brand { color: #fff; font-size: 1.2rem; font-weight: 700; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.navbar-brand i { color: var(--accent); font-size: 1.5rem; }
.navbar-nav { display: flex; gap: 5px; list-style: none; margin: 0; padding: 0; }
.navbar-nav a { color: var(--text); text-decoration: none; padding: 8px 16px; border-radius: 6px; font-size: 0.9rem; transition: all 0.3s; display: flex; align-items: center; gap: 6px; }
.navbar-nav a:hover, .navbar-nav a.active { background: rgba(255,255,255,0.1); color: #fff; }
.navbar-user { color: var(--text); display: flex; align-items: center; gap: 10px; }
.navbar-user a { color: var(--accent); text-decoration: none; }

/* STATUS BADGES */
.status-badge { padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
.status-draft { background: #455a64; color: #fff; }
.status-active { background: var(--info); color: #fff; }
.status-in_progress { background: var(--warning); color: #fff; }
.status-completed { background: var(--success); color: #fff; }
.status-cancelled { background: var(--danger); color: #fff; }
.status-pending { background: #78909c; color: #fff; }
.status-arrived { background: var(--info); color: #fff; }
.status-skipped { background: var(--danger); color: #fff; }

/* CARDS */
.stat-card { border-radius: 12px; padding: 20px; color: #fff; position: relative; overflow: hidden; }
.stat-card .number { font-size: 2.2rem; font-weight: 700; }
.stat-card .label { font-size: 0.85rem; opacity: 0.9; }
.stat-card-blue { background: linear-gradient(135deg, #1565c0, #1e88e5); }
.stat-card-green { background: linear-gradient(135deg, #2e7d32, #43a047); }
.stat-card-orange { background: linear-gradient(135deg, #e65100, #f57c00); }
.stat-card-purple { background: linear-gradient(135deg, #4a148c, #7b1fa2); }
.stat-card-cyan { background: linear-gradient(135deg, #006064, #00acc1); }

/* TABLE */
.table-container { background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); overflow: hidden; }
.table-container .table-header { background: var(--gradient); color: #fff; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; }
.table-container .table-header h5 { margin: 0; font-weight: 600; }
table.custom-table { width: 100%; border-collapse: collapse; }
table.custom-table thead { background: #1b2838; color: #fff; }
table.custom-table thead th { padding: 12px 16px; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; }
table.custom-table tbody tr { border-bottom: 1px solid #e0e0e0; transition: background 0.2s; }
table.custom-table tbody tr:hover { background: #f5f5f5; }
table.custom-table tbody td { padding: 12px 16px; font-size: 0.9rem; color: var(--text-dark); }

/* BUTTONS */
.btn-accent { background: var(--accent); color: #fff; border: none; }
.btn-accent:hover { background: #00838f; color: #fff; }
.btn-action { width: 36px; height: 36px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; border: none; cursor: pointer; transition: all 0.3s; }
.btn-action-view { background: var(--info); color: #fff; }
.btn-action-edit { background: var(--warning); color: #fff; }
.btn-action-delete { background: var(--danger); color: #fff; }

/* LOGIN */
.login-body { background: var(--gradient); min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-card { background: var(--bg-card); border-radius: 16px; overflow: hidden; width: 400px; box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.login-header { background: rgba(0,0,0,0.2); padding: 30px; text-align: center; color: #fff; }
.login-form { padding: 30px; }
.login-form .form-label { color: var(--text); }
.login-form .form-control { background: var(--primary); border: 1px solid var(--border); color: #fff; }
.login-form .form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 0.2rem rgba(0,188,212,0.25); background: var(--primary); color: #fff; }
.btn-login { background: linear-gradient(135deg, var(--accent), var(--accent2)); border: none; padding: 12px; font-weight: 600; font-size: 1rem; }
.btn-login:hover { opacity: 0.9; }

/* LAYOUT */
.main-content { margin-top: 66px; padding: 20px; }
.page-title { font-size: 1.5rem; font-weight: 700; color: var(--text-dark); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.page-title i { color: var(--accent); }

/* UPLOAD AREA */
.upload-area { border: 2px dashed var(--border); border-radius: 12px; padding: 40px; text-align: center; background: #fafafa; transition: all 0.3s; cursor: pointer; }
.upload-area:hover { border-color: var(--accent); background: #f0fffe; }
.upload-area.dragover { border-color: var(--accent); background: #e0f7fa; }
.upload-area i { font-size: 3rem; color: var(--accent); margin-bottom: 10px; }

/* PROGRESS */
.delivery-progress { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.delivery-dot { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; color: #fff; font-weight: 700; }
.delivery-dot.completed { background: var(--success); }
.delivery-dot.arrived { background: var(--info); }
.delivery-dot.pending { background: #ccc; color: #666; }
.delivery-dot.skipped { background: var(--danger); }
.delivery-line { width: 20px; height: 2px; background: #ccc; }
.delivery-line.completed { background: var(--success); }

/* RESPONSIVE */
@media (max-width: 768px) {
    .navbar-nav { display: none; }
    .stat-card .number { font-size: 1.5rem; }
}
