:root {
    --primary: #a51e22;
    --primary-dark: #c72d32;
    --secondary: #7c3aed;
    --success: #059669;
    --warning: #f59e0b;
    --danger: #dc2626;
    --info: #a51e22;
    --light: #f8fafc;
    --dark: #1f2937;
    --gray: #6b7280;
    --border: #e5e7eb;
}

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

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #a51e22 0%, #c72d32 100%);
    min-height: 100vh;
    color: var(--dark);
    line-height: 1.6;
}

/* =============== ANIMATIONS =============== */

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

/* =============== TOAST NOTIFICATIONS =============== */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    max-width: 400px;
    animation: slideInRight 0.5s ease-out;
    border-left: 4px solid var(--success);
    position: relative;
    overflow: hidden;
}

.toast.success {
    border-left-color: var(--success);
}

.toast.error {
    border-left-color: var(--danger);
}

.toast.warning {
    border-left-color: var(--warning);
}

.toast.info {
    border-left-color: var(--info);
}

.toast-icon {
    font-size: 1.2rem;
    margin-right: 12px;
}

.toast.success .toast-icon {
    color: var(--success);
}

.toast.error .toast-icon {
    color: var(--danger);
}

.toast.warning .toast-icon {
    color: var(--warning);
}

.toast.info .toast-icon {
    color: var(--info);
}

.toast-message {
    flex: 1;
    font-weight: 500;
    white-space: pre-line;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--gray);
    padding: 0;
    margin-left: 10px;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--success);
    animation: progress 4s linear;
}

@keyframes progress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

/* =============== FORM STYLES =============== */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    flex-direction: column;

}

.logo {
    width: 150px;
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: 25px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 450px;
    text-align: center;
    animation: slideInUp 0.6s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(248, 250, 252, 0.8);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    background: white;
    transform: translateY(-1px);
}

.form-control.error {
    border-color: var(--danger);
    animation: shake 0.5s ease-in-out;
}

.btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    /* margin-top: 10px; */
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(79, 70, 229, 0.3);
}

.btn:disabled {
    background: var(--gray);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--gray), #4b5563);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #047857);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning), #d97706);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #b91c1c);
}

.btn-info {
    background: linear-gradient(135deg, var(--info), #0284c7);
}

.btn-small {
    padding: 10px 20px;
    font-size: 14px;
    width: auto;
    margin: 0 5px;
}

/* =============== MAIN LAYOUT =============== */

.main-container {
    /* display: none; */
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    animation: fadeIn 0.6s ease-out;
}

.prd, .sum, .commission-section{
    display: none;
}

.order-wrap {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 25px;
}

.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 25px 35px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideInDown 0.6s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header h1 {
    color: var(--primary);
    font-size: 1.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: slideInDown 0.8s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.nav-tab {
    padding: 14px 24px;
    background: rgba(248, 250, 252, 0.8);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
}

.nav-tab:hover {
    background: rgba(79, 70, 229, 0.1);
    border-color: rgba(79, 70, 229, 0.2);
    transform: translateY(-2px);
}

.nav-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

.content-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideInUp 0.6s ease-out;
}

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

/* =============== SEARCH & INPUT SECTIONS =============== */

.search-section {
    background: linear-gradient(135deg, #a51e2224, #a51e2224);
    border: 2px solid #a51e22;
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 30px;
    position: relative;
}

.search-wrapper {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.9);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    background: white;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 1.1rem;
}

/* =============== GPS & LOCATION STYLES =============== */

.location-container {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    border: 2px solid var(--info);
}

.location-status {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 10px;
    background: #a51e2224;
}

.location-status.success {
    background: rgba(5, 150, 105, 0.1);
    border: 1px solid rgba(5, 150, 105, 0.3);
}

.location-status.error {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.gps-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--info);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.gps-button:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.gps-button:disabled {
    background: var(--gray);
    cursor: not-allowed;
    transform: none;
}

/* =============== PRODUCT SELECTION =============== */

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}

.product-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.product-card.selected {
    border-color: var(--success);
    background: linear-gradient(135deg, #f0fdf4, #ecfccb);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.3);
}

.product-image {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 15px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    transform: scale(1.1);
}

.quantity-btn.minus {
    background: var(--danger);
    color: white;
}

.quantity-btn.plus {
    background: var(--success);
    color: white;
}

.quantity-display {
    font-size: 24px;
    font-weight: bold;
    color: var(--dark);
    min-width: 40px;
}

.order-summary {
    background: linear-gradient(135deg, #a51e2224, #a51e2224);
    border: 2px solid #a51e22;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    /* border: 2px solid rgba(14, 165, 233, 0.2); */
}

/* =============== AGENT CARDS =============== */

.agent-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.agent-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

.agent-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
}

.distance-badge {
    background: linear-gradient(135deg, var(--success), #047857);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* .agent-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
} */

.info-item {
    display: flex;
    align-items: center;
    color: var(--gray);
}

.commission-section {
    background: #f3f4f6;
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
}

/* =============== DASHBOARD =============== */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(79, 70, 229, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 50px rgba(79, 70, 229, 0.4);
}

.stat-card h3 {
    font-size: 2.8rem;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    font-weight: 700;
}

.stat-card p {
    position: relative;
    z-index: 1;
    font-weight: 500;
    font-size: 1.1rem;
}

/* =============== TABLES =============== */

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.data-table th {
    background: var(--light);
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--dark);
    border-bottom: 2px solid var(--border);
}

.data-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.3s;
}

.data-table tr:hover {
    background: #f9fafb;
}

/* =============== BADGES =============== */

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-success {
    background: rgba(5, 150, 105, 0.1);
    color: #065f46;
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-danger {
    background: rgba(220, 38, 38, 0.1);
    color: #991b1b;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.badge-info {
    background: rgba(14, 165, 233, 0.1);
    color: #1e40af;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

/* =============== MODALS =============== */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background-color: white;
    margin: 3% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.4s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid var(--border);
    background: var(--light);
}

.modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.close {
    color: var(--gray);
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
}

.close:hover {
    color: var(--danger);
    background: rgba(220, 38, 38, 0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.password-display {
    background: var(--light);
    border: 2px solid var(--border);
    padding: 15px;
    border-radius: 10px;
    font-family: monospace;
    font-size: 16px;
    font-weight: bold;
    color: var(--dark);
    text-align: center;
    margin-bottom: 10px;
}


/* Thêm vào file main.css */
.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
}

.status-active {
    background: #22c55e;
    color: white;
}

.status-inactive {
    background: #f59e0b;
    color: white;
}

.status-suspended {
    background: #ef4444;
    color: white;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.group-group-form{
display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0;
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
}

.agent-card {
  border: 3px solid #ddd;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  position: relative;
  transition: all 0.2s ease;
}
.agent-card:hover {
  border-color: var(--info);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.agent-card--nearest {
  border-color: var(--success);
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
}
.agent-badge {
  background: var(--success);
  color: white;
  padding: 8px 12px;
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.agent-header {
  margin-bottom: 10px;
}
.agent-name {
  font-weight: bold;
  font-size: 1.2rem;
}
.agent-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 5px;
}
.distance-badge {
  background: var(--warning);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
}
.time-badge {
  background: linear-gradient(135deg, var(--info), #0284c7);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.agent-info p {
  margin: 4px 0;
  color: #333;
}

.commission-section {
  margin-top: 15px;
}
.commission-section h4 {
  margin-bottom: 10px;
  color: var(--dark);
}
.commission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  align-items: center;
}
.commission-share-input {
  width: 80px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
  text-align: center;
}
.commission-formula label,
.commission-result label {
  display: block;
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 5px;
}
.commission-amount {
  font-weight: 600;
  color: var(--success);
  font-size: 1.1rem;
}

.agent-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 15px;
}
.agent-card .btn {
  border: none;
  padding: 10px 0;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}
.btn-success {
  background: var(--success);
  color: white;
}
.btn-info {
  background: var(--info);
  color: white;
}

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

.prd-title {
  margin-bottom: 10px;
  color: var(--dark);
}

.prd-number {
  color: var(--gray);
  margin-bottom: 15px;
}

.prd-price {
  font-size: 24px;
  font-weight: bold;
  color: var(--success);
  margin-bottom: 20px;
}

.prd-sub {
  color: var(--gray);
  font-size: 14px;
}

.prd-subtotal {
  font-weight: bold;
  color: var(--success);
}

/* ---------------cs------------------ */

.order-copy-section {
  margin-top: 20px;
  padding: 15px;
  border: 1px dashed #ccc;
  border-radius: 8px;
  background: #fafafa;
}

.copy-content {
  white-space: pre-line;
  background: #fff;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  font-size: 14px;
  color: #333;
}

#copyBtn {
  cursor: pointer;
}
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 10px;
  z-index: 999;
  background-color: var(--primary);
  color: #fff;
  border: none;
      width: 45px;
    height: 45px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: none; /* ẩn mặc định */
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: background 0.3s, transform 0.3s;
}

#backToTop:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}
h2.create-order {
    width: 100%;
    text-align: center;
}


/* =============== RESPONSIVE =============== */

@media (max-width: 768px) {
h2.create-order {
    width: 100%;
}
    .main-container {
        padding: 15px;
    }

    .header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 20px;
    }

    .nav-tabs {
        justify-content: center;
    }

    .nav-tab {
        flex: 1;
        min-width: 0;
        padding: 12px 16px;
        font-size: 0.9rem;
    }

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

    .agent-info {
        grid-template-columns: 1fr;
    }

    .product-grid {
      
overflow: auto;
gap: 10px;

    }

    .order-wrap {
        grid-template-columns: 1fr;
    }
.product-card {
    padding: 10px;
}
.prd-title, .prd-number, .prd-price, .quantity-display, .prd-sub {
    font-size: 12px;
margin-bottom: 0px;
}
.product-image {
    width: 100px;
    height: 100px;
}
.quantity-controls {
    gap: 0px;
    margin: 4px 0;
}
.quantity-btn{
width: 20px;
height: 20px;
}

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

    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
.login-box{
max-width: 100% !important;
padding: 30px;
}
    .header h1 {
    font-size: 1.2rem;
}
.nav-tabs {
    flex-direction: column;
}
.user-info {
    gap: 14px;
}
.content-section{
padding: 20px;
}
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.search-section {
    padding: 10px;
}
.group-group-form{
grid-template-columns: 1fr;
    gap: 0px;
    margin: 0px;
}
.agentResults {
    grid-template-columns: 1fr;
}
.agent-card {
    padding: 10px;
}
.agent-header {
    margin-top: 15px;
    flex-direction: column;
}

#backToTop {
    width: 40px;
    height: 40px;
    font-size: 16px;
}
}



.location-selector {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 20px;
    border-radius: 6px;
    /* max-width: 750px; */
    margin: 0;
    font-family: Arial, sans-serif;
}

.search-container {
    position: relative;
    margin-bottom: 15px;
}

.search-input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background-color: rgba(255,255,255,0.9);
    box-sizing: border-box;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
}

.dropdown-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.location-select {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background-color: rgba(255,255,255,0.9);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.location-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.5);
}

@media (max-width: 480px) {
    .dropdown-container {
        flex-direction: column;
        gap: 10px;
    }
}

.wards-list {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    background: #fdfdfd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.wards-list h4 {
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
}
.wards-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.wards-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #ccc;
}
.wards-list li:last-child {
    border-bottom: none;
}
.ward-code {
    background: #eee;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 12px;
    color: #555;
}

.suggestions-box {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    max-height: 260px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    z-index: 1000;
}

.suggestion-item {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 15px;
    border-bottom: 1px solid #f3f3f3;
}

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

.suggestion-item:hover {
    background: #f6f6f6;
}
