:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at top right, #1e293b, var(--bg-color));
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.hidden { display: none !important; }

/* Layout */
.app-container {
    display: flex;
    width: 100%;
}

.sidebar {
    width: 250px;
    padding: 2rem;
    margin: 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-links li a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 400;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: block;
    transition: all 0.3s ease;
}

.nav-links li.active a, .nav-links li a:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #fff;
}

.content-area {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.view {
    animation: fadeIn 0.5s ease-in-out;
}

header {
    margin-bottom: 2rem;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

.subtitle {
    color: #94a3b8;
    margin-top: 0.5rem;
}

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

/* Tracker Search */
.search-box {
    display: flex;
    padding: 1rem;
    gap: 1rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

input[type="text"] {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    border-color: var(--accent-color);
}

button {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.primary-action {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.39);
}
.primary-action:hover {
    background: linear-gradient(135deg, #059669, #047857);
}

.pulse-anim {
    animation: pulse 2s infinite;
}

/* Timeline */
.tracking-result {
    padding: 2rem;
    max-width: 800px;
}

.repair-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-in-repair {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.5);
}

.timeline-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding-bottom: 2rem;
}

.timeline-line {
    position: absolute;
    top: 15px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: var(--glass-border);
    z-index: 1;
}

.timeline-step {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 25%;
    opacity: 0.5;
    transition: all 0.5s ease;
}

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

.timeline-step.completed .circle {
    background: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
}

.timeline-step.current {
    opacity: 1;
    transform: scale(1.1);
}

.timeline-step.current .circle {
    background: var(--warning);
    box-shadow: 0 0 20px var(--warning);
    animation: bounce 2s infinite;
}

.circle {
    width: 34px;
    height: 34px;
    background: #475569;
    border-radius: 50%;
    margin: 0 auto 1rem auto;
    border: 4px solid var(--bg-color);
    transition: all 0.3s ease;
}

.timeline-step p {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.timeline-step .date {
    color: #94a3b8;
}

/* Kanban Board */
.kanban-board {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.kanban-column {
    flex: 1;
    min-width: 300px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.kanban-column h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ticket {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ticket:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
}

.tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.ticket-ups .tag { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.ticket-local .tag { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.ticket-legacy .tag { background: rgba(239, 68, 68, 0.2); color: #f87171; }

.ticket h4 { margin-bottom: 0.5rem; }
.ticket p { font-size: 0.875rem; color: #94a3b8; }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.modal-content {
    background: var(--glass-bg);
    padding: 2rem;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.close-btn {
    background: transparent;
    color: var(--text-color);
    font-size: 1.5rem;
    border: none;
    padding: 0;
    margin: 0;
}
.close-btn:hover { background: transparent; transform: none; color: var(--danger); box-shadow: none; }

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #cbd5e1;
}

.form-group input {
    width: 100%;
}

