body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
}

.top-nav {
    background-color: #2c3e50;
    padding: 10px 0;
}

.top-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0 20px;
    justify-content: flex-end;
}

.top-nav li {
    margin-right: 20px;
}

.top-nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.dashboard-container {
    display: flex;
    padding: 20px;
}

.sidebar-filters {
    width: 250px;
    background: #f4f4f4;
    padding: 15px;
    border-right: 1px solid #ddd;
}

.sidebar-filters form {
    display: flex;
    justify-content: space-around;
    flex-direction: column;
}

.sidebar-filters label {
    display: flex;
    justify-content: space-between;
    margin: 6px 0;
    box-sizing: border-box;
}

.sidebar-filters select {
    width: 100%;
    margin-left: 5px;
}

.main-wrapper {
    margin-left: 250px; /* same as sidebar width */
    transition: margin-left 0.3s ease;
}

.sidebar-filters.collapsed ~ .main-wrapper {
    margin-left: 0;
}

.dashboard-main {
    flex: 1;
    padding: 0 20px;
    position: relative;
    /* left: 82px; */
    width: 67%;
    margin: auto;
}

.metrics {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.metric-box {
    background: #ecf0f1;
    padding: 15px;
    border-radius: 8px;
    width: 200px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
    flex: 1;
    font-size: 1rem;
}
        
.business-table table {
    width: 100%;
    border-collapse: collapse;
}

.business-table th, .business-table td {
    padding: 10px;
    border-bottom: 1px solid #ccc;
}

table button {
            margin: 2px;
            padding: 4px 8px;
}
        
.badge {
    padding: 3px 7px;
    border-radius: 5px;
    color: white;
    font-size: 0.85em;
}

.badge.pending { color: #fff; background: orange; padding: 4px 8px; border-radius: 4px; }

.badge.approved { color: #fff; background: green; padding: 4px 8px; border-radius: 4px; } 
        
        
button {
    padding: 5px 10px;
    margin: 5px 0;
    border: none;
    background-color: #3498db;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #2980b9;
}

element.style {
    text-align: center;
}
.chart-container {
    width: 100%;
    max-width: 600px;
    margin: 1em auto;
}

.reset-btn {
    display: flex;
    margin-top: 10px;
    background: #ccc;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    justify-content: center;
}
.reset-btn i {
    margin-right: 5px;
}
.reset-btn:hover {
    background: #bbb;
}


/* Responsive nav for small screens */
@media (max-width: 768px) {
  .top-nav ul {
    flex-direction: column;
    align-items: flex-end;
    padding: 0 10px;
  }

  .top-nav li {
    margin: 5px 0;
  }

  .dashboard-container {
    flex-direction: column;
    padding: 10px;
  }

  .sidebar-filters {
    width: 100%;
    border-right: none;
    /* border-bottom: 1px solid #ddd; */
    margin-bottom: 15px;
    box-sizing: border-box;
    max-width: 500px;
    margin: 10px auto;
    height: max-content;
  }

  .main-wrapper {
    margin-left: 0;
  }

  .metrics {
    flex-direction: column;
    gap: 10px;
    max-width: 500px;
    margin: 10px auto;
  }

  .metric-box {
    width: 100%;
    box-sizing: border-box;
  }

  .business-table table,
  .business-table th,
  .business-table td {
    font-size: 0.9em;
    word-break: break-word;
  }
  .charts h3 {
        text-align: center;
    }
    
  .chart-container {
    max-width: 100%;
    overflow-x: auto;
  }

  .reset-btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
}

