@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

body {
    font-family: 'Hind Siliguri', 'Poppins', sans-serif;
    background-color: #ffffff !important;
    margin: 0; padding: 0;
    box-sizing: border-box;
}

.top-nav {
    display: flex; align-items: center; padding: 15px 20px;
    background: #ffffff; border-bottom: 1px solid #f0f0f0;
    position: sticky; top: 0; z-index: 1000;
}
.back-btn { margin-right: 15px; font-size: 20px; color: #2d6a4f; text-decoration: none; }
.page-title { font-size: 18px; font-weight: 600; color: #2d6a4f; }

.agent-container { max-width: 1100px; margin: 20px auto; padding: 0 15px; }

/* Permission Screen CSS */
.permission-card {
    text-align: center; max-width: 450px; margin: 80px auto;
    padding: 40px 30px; background: #ffffff; border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid #f0f0f0;
}
.location-icon { font-size: 70px; color: #c5a880; margin-bottom: 20px; }
.permission-card h2 { color: #2d6a4f; font-size: 22px; margin-bottom: 10px; }
.permission-card p { color: #666; font-size: 14px; line-height: 1.6; margin-bottom: 25px; }
.location-btn {
    background: #2d6a4f; color: white; border: none; padding: 12px 35px;
    border-radius: 30px; font-size: 16px; font-weight: bold; cursor: pointer; transition: 0.3s;
}
.location-btn:hover { background: #1b4332; transform: translateY(-2px); }

/* Dashboard Layout (Map + List) */
.dashboard-layout {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; margin-top: 10px;
}
#map-container {
    background: #f9f9f9; border-radius: 15px; overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: 1px solid #e0e0e0;
    height: 500px; position: sticky; top: 80px;
}
#map { width: 100%; height: 100%; }

/* Agent Cards List styling */
.section-title { font-size: 18px; color: #2d6a4f; margin-bottom: 15px; }
.agent-grid { display: flex; flex-direction: column; gap: 15px; max-height: 500px; overflow-y: auto; padding-right: 5px; }
.agent-card {
    background: #ffffff; border: 1px solid #e6e6e6; padding: 15px;
    border-radius: 12px; transition: 0.3s; display: flex; flex-direction: column; gap: 5px;
}
.agent-card:hover { border-color: #2d6a4f; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.agent-card h4 { margin: 0; color: #333; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.agent-card p { margin: 2px 0; color: #666; font-size: 14px; }
.agent-status {
    align-self: flex-start; background: #e8f5e9; color: #2d6a4f;
    padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: bold; margin-top: 5px;
}

@media (max-width: 768px) {
    .dashboard-layout { grid-template-columns: 1fr; }
    #map-container { height: 300px; position: relative; top: 0; }
}