/* ================== Modern Simple Design ================== */
* {
    box-sizing: border-box;
}

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

/* ================== Topbar ================== */
.topbar {
    background: white;
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow-x: auto;
}

.topbar-users {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #555;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.topbar-user:hover {
    background: #27ae60;
    color: white;
    transform: translateY(-2px);
}

.topbar-user.active {
    background: #27ae60;
    color: white;
    border-color: #1e8449;
}

.topbar-user i {
    font-size: 18px;
}

/* ================== Header ================== */
header {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

header .logo {
    height: 50px;
    border-radius: 8px;
}

header .title {
    font-size: 22px;
    font-weight: 600;
}

header .back-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}

header .back-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* ================== Navigation ================== */
nav {
    background: white;
    display: flex;
    gap: 10px;
    padding: 15px 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

nav a {
    color: #555;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
}

nav a:hover, nav a.active {
    background: #27ae60;
    color: white;
}

/* ================== Main Container ================== */
main {
    padding: 30px;
}

.page-title {
    font-size: 24px;
    margin-bottom: 25px;
    color: #2c3e50;
}

/* ================== User Selection Grid ================== */
.user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.user-card {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.user-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.user-card i {
    font-size: 40px;
    color: #27ae60;
    margin-bottom: 15px;
}

.user-card h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.user-card p {
    margin: 0;
    font-size: 13px;
    color: #777;
}

/* ================== Cards ================== */
.card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

/* ================== Forms ================== .form-group */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #27ae60;
}

.btn-submit {
    background: #27ae60;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #219a52;
}

/* ================== Tables ================== */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

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

th {
    background: #27ae60;
    color: white;
    font-weight: 600;
}

tr:hover {
    background: #f8f9fa;
}

.status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status.pending { background: #fff3cd; color: #856404; }
.status.completed { background: #d4edda; color: #155724; }
.status.in-transit { background: #cce5ff; color: #004085; }

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

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.stat-card i {
    font-size: 30px;
    color: #27ae60;
    margin-bottom: 10px;
}

.stat-card .value {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
}

.stat-card .label {
    font-size: 14px;
    color: #777;
}

/* ================== Action Buttons ================== */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary { background: #27ae60; color: white; }
.btn-primary:hover { background: #219a52; }

.btn-danger { background: #e74c3c; color: white; }
.btn-danger:hover { background: #c0392b; }

.btn-info { background: #3498db; color: white; }
.btn-info:hover { background: #2980b9; }

/* ================== Quick Actions ================== .quick-actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.action-btn {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.action-btn i {
    font-size: 28px;
    color: #27ae60;
    margin-bottom: 10px;
    display: block;
}

.action-btn span {
    font-size: 14px;
    font-weight: 500;
}

/* ================== Empty State ================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #777;
}

.empty-state i {
    font-size: 60px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state h3 {
    margin: 0 0 10px 0;
    color: #555;
}

/* ================== Modal ================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #777;
}

/* ================== Details View ================== */
.detail-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.detail-label {
    font-weight: 600;
    width: 150px;
    color: #555;
}

.detail-value {
    flex: 1;
    color: #333;
}

/* ================== Filter Bar ================== */
.filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-bar input,
.filter-bar select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

/* ================== Badge ================== */
.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.badge-success { background: #d4edda; color: #155724; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-danger { background: #f8d7da; color: #721c24; }
.badge-info { background: #cce5ff; color: #004085; }

/* ================== Responsive ================== */
@media(max-width: 768px) {
    header .title { font-size: 18px; }
    nav { flex-wrap: wrap; padding: 10px; }
    nav a { padding: 8px 15px; font-size: 13px; }
    main { padding: 15px; }
    .user-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .topbar-user span { display: none; }
    .topbar-user { padding: 10px 12px; }
}
