/* 
  theme.css
  Global site-wide styling with navy blue as the primary color.
  Designed for responsive and clean look & feel.
*/

/* Color Palette */
:root {
  --color-primary: #0a1f44;    /* Navy Blue */
  --color-secondary: #1C3D5A;  /* Slightly lighter for accents */
  --color-accent: #ffd700;     /* Gold accent (optional) */
  --color-background: #f5f6fa; /* Light background */
  --color-surface: #ffffff;    /* White cards/containers */
  --color-text-primary: #333;  /* Primary text color */
  --color-text-inverse: #ffffff;
  --color-border: #ddd;

  /* Spacing & Font Defaults */
  --spacing-default: 1rem;
  --border-radius: 6px;
  --font-family: 'Arial', sans-serif;

  /* Typography scales */
  --font-size-base: 16px;
  --font-size-h1: 1.75rem;
  --font-size-h2: 1.5rem;
  --font-size-h3: 1.25rem;
}

.audit-report-section {
    margin-top: 30px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
}
.audit-report-section h2 {
    margin-bottom: 15px;
}
.audit-report-section .btn {
    margin: 5px;
    padding: 10px 15px;
    text-decoration: none;
    display: inline-block;
}

/* Reset/Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 100%; /* 1rem = 16px by default */
}
body {
  font-family: var(--font-family);
  background: var(--color-background);
  color: var(--color-text-primary);
  line-height: 1.4;
        margin: 0;
    padding: 0;
}

/* Container Utility */
.container {
  max-width: 100%;
  margin: 2rem auto;
  padding: 1rem;
  background: var(--color-surface);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}
h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }

/* Paragraphs, Lists */
p {
  margin-bottom: 1rem;
  color: var(--color-text-primary);
}
ul {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}
ul li {
  margin: 0.5rem 0;
}

/* Links */
a {
  color: var(--color-secondary);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s;
}
a:hover {
  color: var(--color-secondary);
}

/* Buttons */
button,
input[type="submit"] {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s, opacity 0.2s;
}
button:hover,
input[type="submit"]:hover {
  background: var(--color-secondary);
    color: #fff;

}
button:disabled,
input[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.button {
      display:inline-block; 
      padding:8px 16px; 
      background:#0a1f44; 
      color:#fff; 
      border-radius:4px; 
      text-decoration:none; 
      margin-top:10px;
    }
    .button:hover {
      background:#1C3D5A;
      color:#fff; 
    }
/* Form Elements */
label {
  display: block;
  margin: 1rem 0 0.5rem;
  font-weight: bold;
  color: var(--color-primary);
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: var(--font-family);
  margin-bottom: 0.5rem;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 3px rgba(10,31,68,0.2);
}

/* Navigation Bar Example (Optional) */
/* Navbar Container */
/* Base Navbar Style */
.navbar {
  width: 100%;
  background: var(--color-primary);  /* your navy color */
  color: var(--color-text-inverse);  /* typically #fff */
  padding: 1rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column; /* Default: logo on top, links below */
}

/* Site Logo/Title */
.navbar .logo {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem; /* space after the logo/title */
  color: var(--color-text-inverse);
}

/* Nav Links Wrapper */
.navbar .nav-links {
  display: flex;
  flex-wrap: wrap;      /* let items wrap if there's not enough horizontal space */
  gap: 0.5rem;            /* space between each link */
  align-items: center;  /* center them vertically if in a single row */
}

/* Nav Links (Individual <a> tags) */
.navbar .nav-links a {
  color: var(--color-text-inverse);
  text-decoration: none;
  padding: 0.5rem 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s;
  font-weight: 600;     /* a bit bolder text */
}

/* Hover State */
.navbar .nav-links a:hover {
  background: var(--color-secondary); /* slightly lighter/darker navy or accent */
}

/* Active Link State (from your role-based highlight approach) */
.navbar .nav-links a.active {
  background: var(--color-accent); /* highlight color, e.g. gold or light yellow */
  color: var(--color-text-primary); /* contrast text color if accent is bright */
}

/* Responsive Styles */

/* Mobile and smaller screens: 2-column layout */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column; /* Keep logo on top, links stacked below */
    padding: 1rem;
  }
  .navbar .nav-links {
    display: grid;               /* Use CSS Grid layout */
    grid-template-columns: 50% 50%; /* Create 2 equal-width columns */
    gap: 10px;                  /* Add spacing between items */
    align-items: flex-start;    /* Align items to the top-left */
  }
  .navbar .nav-links a {
    width: 100%;               /* Each link takes full width */
    margin-bottom: 0.05rem;     /* Space between links */
  }
}

/* Desktop and larger screens: single row layout */
@media (min-width: 769px) {
  .navbar {
    flex-direction: row; /* Place logo and links in a row */
    align-items: center; /* Center vertically */
    justify-content: space-between; /* Space between logo and links */
  }
  .navbar .nav-links {
    flex-direction: row;  /* Links in a single row */
    display: flex;        /* Flex layout for alignment */
    gap: 1rem;            /* Add spacing between links */
  }
  .navbar .logo {
    margin-bottom: 0; /* Remove bottom margin for logo in desktop view */
  }
}
/* Footer Example (Optional) */
footer {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  text-align: center;
  padding: 1rem;
  position: relative;
  margin-top: 2rem;
}

/* Responsive (Mobile-Friendly) */
@media (max-width: 768px) {
  .container {
    margin: 1rem;
    padding: 1rem;
  }
  h1 {
    font-size: 1.5rem;
  }
  button:not(.send-btn),
  input[type="submit"]:not(.send-btn) {
    width: 100%;
  }
}


 
.send-btn {
    min-width: 160px;
    height: 56px;
    border-radius: 22px;
    background: var(--color-primary, #0a1f44);
    color: #fff;
    border: none;
    font-size: 1.28rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.16s, box-shadow 0.16s;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(16, 38, 96, 0.08);
    letter-spacing: 1px;
}

.send-btn:hover,
.send-btn:focus {
    background: var(--color-secondary, #1C3D5A);
    outline: none;
    box-shadow: 0 4px 18px rgba(22, 48, 96, 0.14);
}

@media (max-width: 600px) {
    .send-btn {
        min-width: 90px;
        height: 42px;
        font-size: 1.03rem;
        border-radius: 16px;
    }
}

.hint {
  display: inline-block;
  background: #2176ae;
  color: #fff;
  font-weight: bold;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  text-align: center;
  cursor: pointer;
  margin-left: 5px;
  font-size: 13px;
  line-height: 18px;
  position: relative;
}

.hint[data-tooltip]:hover::after,
.hint[data-tooltip]:focus::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 110%;
  top: 50%;
  transform: translateY(-50%);
  background: #333;
  color: #fff;
  padding: 5px 12px;
  border-radius: 5px;
  white-space: pre-line;
  font-size: 13px;
  z-index: 100;
  min-width: 120px;
  max-width: 300px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

/* Dropdown container */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown > a {
  padding: 8px 12px;
  text-decoration: #0a1f44;
  color: #fff; /* adjust to match your theme */
}

/* Dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #0a1f44;
      text-decoration: #0a1f44;
  min-width: 200px;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
  z-index: 1;
}

.dropdown-content a {
  display: block;
  padding: 8px 12px;
  text-decoration: #3333;
  color: #3333;
}

.dropdown-content a:hover {
  background-color: #f0f0f0;
}

/* Show on hover */
.dropdown:hover .dropdown-content {
  display: block;
}
