* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #f4f7f6;
    color: #333;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: 260px;
    background-color: #ffffff;
    border-right: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
}

.logo {
    padding: 24px;
    border-bottom: 1px solid #eaeaea;
}

.logo h2 {
    color: #2c3e50;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vendor-tag {
    font-size: 12px;
    background-color: #69AD8E;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
}

.nav-menu {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.nav-item {
    padding: 15px 24px;
    text-align: left;
    background: none;
    border: none;
    color: #555;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-item:hover {
    background-color: #f8f9fa;
    color: #69AD8E;
}

.nav-item.active {
    background-color: rgba(105, 173, 142, 0.1);
    color: #69AD8E;
    border-right: 4px solid #69AD8E;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.top-bar {
    background-color: #ffffff;
    padding: 20px 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.top-bar h1 {
    font-size: 22px;
    color: #2c3e50;
}

.content-section {
    display: none;
    padding: 40px;
}

.content-section.active {
    display: block;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background-color: #fff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-label {
    color: #7f8c8d;
    font-size: 14px;
    font-weight: 500;
}

.stat-card h2 {
    font-size: 32px;
    color: #2c3e50;
}

.stat-card.alert h2 { color: #e74c3c; }
.stat-card.warning h2 { color: #f39c12; }

/* Cards & Forms */
/* Routes Section Grid Layout */
.routes-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
    padding: 20px;
}

.forms-column, .lists-column {
    display: flex;
    flex-direction: column;
}

.readonly-field {
    background: #f9f9f9 !important;
    color: #666 !important;
    cursor: not-allowed;
}

.mini-table {
    max-height: 300px;
    overflow-y: auto;
}

.btn-icon {
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-icon.edit { color: #2c3e50; }
.btn-icon.delete { color: #e74c3c; }

@media (max-width: 1024px) {
    .routes-grid {
        grid-template-columns: 1fr;
    }
}

.card-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #69AD8E;
    color: white;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    border-bottom-right-radius: 12px;
    text-transform: uppercase;
}

.card-badge.secondary {
    background: #2c3e50;
}

.card h2 {
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 20px;
}

.form-group {
    margin-bottom: 20px;
    flex: 1;
}

.form-row {
    display: flex;
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

input, textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    border-color: #69AD8E;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn.primary {
    background-color: #69AD8E;
    color: white;
    width: 100%;
}

.btn.primary:hover {
    background-color: #559175;
}

.btn.secondary {
    background-color: #f1f1f1;
    color: #333;
}

.btn.secondary:hover {
    background-color: #e2e2e2;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

/* Utilities */
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }

.message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    display: none;
    font-weight: 500;
}

.message.success {
    display: block;
    background-color: #e8f5e9;
    color: #2e7d32;
}

.message.error {
    display: block;
    background-color: #ffebee;
    color: #c62828;
}

/* Tables */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: #f8f9fa;
    color: #555;
    font-weight: 600;
    font-size: 14px;
}

td {
    font-size: 14px;
    color: #333;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.status-Pending { background-color: #fff3e0; color: #ef6c00; }
.status-Resolved { background-color: #e8f5e9; color: #2e7d32; }
