/* 
After having problems with CSS, I decided to create a new CSS for each HTML file. 
I know that isn't optimal, but I wanted to keep the styles separate for clarity.
*/


/* Road Closure Style Guide:
This is a modified, more focused version of the style guide provided to me 
for my official PowerBI reports on KYTC TRAK (https://trak.kytc.ky.gov/) 
I like the clean, modern look and feel of the dashboard 
and wanted to use it as a base for my personal projects.
*/

/* Color Palette */
:root 
{
  --blue: #003764;
  --light-blue: #5EB3E4;
  --golden-yellow: #FFC600;
  --black: #000000;
  --gray: #969595;
  --light-gray: #E0E1E1;
  --bright-green: #92D050;
  --orange: #F25C05;
  --purple: #AA2E9C;
  --red: #C00000;
  --dark-gray: #595959;
}

/* Base Styles */
body, html 
{
  font-family: Arial, Helvetica, sans-serif;
  background-color: #fff;
  color: #000;
  margin: 0;
  padding: 0;
}

h1
{
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2.1rem;
  font-weight: bold;
  color: var(--blue);
  margin: 1rem 0;
  text-align: center;
}

h2
{
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--light-blue);
  margin: 0.5rem 0;
  text-align: center;
}

/* Navigation Bar Styles */
.main-nav 
{
  background: var(--light-gray);
  padding: 1rem 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  border-bottom: 2px solid var(--blue);
}

.main-nav .nav-link 
{
  color: var(--blue);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.main-nav .nav-link:hover,
.main-nav .nav-link:focus 
{
  background: var(--blue);
  color: #fff;
  text-decoration: none;
}

/* Download Button Styles */
.font-bold 
{
  font-weight: bold;
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.font-bold:hover 
{
  background: var(--light-blue);
  transform: translateY(-1px);
}

.font-bold:active 
{
  transform: translateY(0);
}

/* AG Grid Container Styles */
#aggrid-table-container 
{
  margin: 2rem 20px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 700px) 
{
  .main-nav {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
  }

  .main-nav .nav-link 
  {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    width: 100%;
    text-align: center;
    border-radius: 0;
  }

  #aggrid-table-container 
  {
    margin: 2rem 10px;
  }
}

@media (max-width: 400px) 
{
  .main-nav .nav-link 
  {
    font-size: 0.95rem;
    padding: 0.5rem 0.5rem;
  }

  .font-bold 
  {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
  }

  #aggrid-table-container 
  {
    margin: 2rem 5px;
  }
}