/* Common UI Styles */

.filter-btn {
  display: inline-block;
  padding: 4px 12px;
  margin: 0;
  background-color: #f8f9fa;
  color: #495057;
  text-decoration: none;
  border: 1px solid #dee2e6;
  border-radius: 0;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  border-right: none;
}

.filter-btn:first-child {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.filter-btn:last-child {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  border-right: 1px solid #dee2e6;
}

.filter-btn:hover {
  background-color: #e9ecef;
  color: #495057;
  text-decoration: none;
  border-color: #adb5bd;
  z-index: 1;
  position: relative;
}

.filter-btn.active {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
  z-index: 2;
  position: relative;
}

.filter-btn.emergency {
  border-color: #dee2e6;
}

.filter-btn.emergency:last-child {
  border-right: 1px solid #dee2e6;
}

.filter-btn.emergency.active {
  background-color: #dc3545;
  border-color: #dc3545;
  z-index: 2;
}

/* Add button styling - green version of filter-btn */
.add-btn {
  display: inline-block;
  padding: 8px 16px;
  margin: 4px 8px 4px 0;
  background-color: #28a745;
  color: white;
  text-decoration: none;
  border: 1px solid #28a745;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.add-btn:hover {
  background-color: #218838;
  color: white;
  text-decoration: none;
  border-color: #1e7e34;
}

/* Filters and actions layout */
.filters-and-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
}

.filter-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.inline_button{
  padding-left: 4px;
  paddingright: 3px;
  padding-top: 0px;
  padding-bottom: 1px;
}

/* Floating shadow effects */
.table, .header, .footer, .endorsements-table {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Form button styles */
.form_button {
  background: #007bff;
  color: white;
  border: 1px solid darkgrey;
  padding: 8px 16px;
  border-radius: 4px;
}

.form_button:hover {
  background: #0056b3;
  border-color: #0056b3;
}

.form_button:disabled {
  background: #6c757d;
  border-color: #6c757d;
  cursor: not-allowed;
}

.form_button.btn-secondary {
  background: #6c757d;
  border-color: #6c757d;
}

.form_button.btn-secondary:hover {
  background: #545b62;
  border-color: #545b62;
}

.form_button.btn-success {
  background: #28a745;
  border-color: #28a745;
}

.form_button.btn-success:hover {
  background: #218838;
  border-color: #1e7e34;
}

.form_button.btn-danger {
  background: #dc3545;
  border-color: #dc3545;
}

.form_button.btn-danger:hover {
  background: #c82333;
  border-color: #bd2130;
}
.form_button-new{
  background: forestgreen;
  color: white;
}
.form_button-new:hover {
  background: darkgreen;
}
.form_button-edit{
  background: blue;
  color: white;
}
.form_button-update{
  background: blue;
  color: white;
}
.form_button-edit:hover, .form_button-update:hover {
  background: #0556d3;
  color: white;
}
.form_button-delete{
  background: red;
  color: white;
}
.form_button-delete:hover {
  background: darkred;
}
.form_button-cancel{
  background: grey;
  color: white;
}
.form_button-cancel:hover {
  background: slategrey;
}
/* Skills Edit Form Styling - Exact Match to Companies Form */
@import url(https://fonts.googleapis.com/css?family=Lato:400,300,300italic,400italic,700,700italic);

/* Use the exact same CSS classes as the companies form */

.setup_form_field
{
  width: 200px;
  font-size: 10pt;
  color: black;
}

div input.required_form_field, div select.required_form_field
{
  border: 1px solid #ff0000;
}

.form_row
{
  margin-bottom: 5px;
  padding: 1px 0;
}

.form_row_first
{
  margin-top: 20px;
}
.form_row_last
{
  margin-bottom: 10px;
  padding: 10px 0;
}
.form_row_available{
  margin-top: 15px;
}
.form_group_text
{
  font-weight: 600;
  font-size: 12pt;
  text-align: right;
}

.form_pair
{
  min-width: 390px;
}

.form_pair .row {
  display: flex;
  align-items: center;
  margin-bottom: 2px;
  margin-left: 0;
  margin-right: 0;
}

.form_pair .col-5, .form_pair .col-7, .form_pair .col-9, .form_pair .col-3 {
  padding: 2px 8px;
  display: flex;
  align-items: center;
}

.form_pair .form_label_text {
  margin-bottom: 0;
}

.form_pair .setup_form_field {
  width: 100%;
}

.form_label_text
{
  text-align: right;
  font-size: 10pt;
  color: black;
  font-family: 'Lato', Helvetica, sans-serif;
  line-height: 1.5;
}

.form_value_text
{
  /*background-color: lightcyan; /* just to test positioning */
}

/* Custom styling for checkboxes only */
.skills-form-checkboxes {
  margin: 20px 0;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 5px;
}

.skills-form-checkboxes label {
  display: block;
  margin: 6px 0;
  font-weight: normal;
  cursor: pointer;
  font-size: 10pt;
  color: black;
}

.skills-form-checkboxes input[type="checkbox"] {
  margin-right: 8px;
  transform: scale(1.2);
}

/* Skills Table Styles */
.skills-table-container {
  margin: 2rem 0;
  overflow-x: auto;
  background: white;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.skills-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.skills-table thead {
  background-color: var(--header-footer-bg);
  border-bottom: 2px solid #dee2e6;
}

.skills-table th {
  padding: 6px 10px;
  text-align: left;
  font-weight: 600;
  color: #495057;
  border-bottom: 1px solid #dee2e6;
}

.skills-table td {
  padding: 6px 10px;
  border-bottom: 1px solid #f1f3f4;
  vertical-align: middle;
}

.skills-table tbody tr:hover {
  background-color: #f8f9fa;
}

.skill-name-link {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

.skill-name-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Responsive table */
@media (max-width: 768px) {
  .skills-table-container {
    margin: 1rem -1rem;
    border-radius: 0;
  }
  
  .skills-table th,
  .skills-table td {
    padding: 6px 10px;
    font-size: 14px;
  }
}
/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 *


 */

/* CSS Custom Properties - Site Colors */
:root {
  --header-footer-bg: #c0ddc0; /* #90EE90; /* Light green - community growth & connection */
  /*--active-link-bg: rgba(0, 0, 0, 0.1);*/
  --active-link-hover-bg: #218838;
  --active-link-text: white;
  --active-link-hover-text: white;
}

body
{
  background-color: #8ED8E4; /*#d2e8f9;*/
}
.site-container {
  max-width: 1140px;
  margin: 0 auto; /* this will centre the content in the available screen real estate */
}
.site-link{
  text-decoration: none;
  padding: 0.5rem 0.25rem;
  transition: background-color 0.2s;
  white-space: nowrap;
}
.site-link:hover {
  background-color: rgba(0, 0, 0, 0.1);
}
.site-link.active {
  background-color: var(--active-link-bg);
  color: var(--active-link-text);
  font-weight: 600;
}
.site-link.active:hover {
  background-color: var(--active-link-hover-bg);
  color: var(--active-link-hover-text);
  font-weight: 600;
}
/* Navigation Menu Layout */
.navbar-container {
  width: 100%;
  padding: 0.5rem 0;
  background-color: var(--header-footer-bg);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Top row: brand left, nav right */
.navbar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  max-width: 1140px;
  margin: 0 auto 0.5rem auto;  /* T R B L */
  padding: 0 1rem;
}

.navbar-brand {
  flex-shrink: 0;
}

.navbar-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-link {
}

.nav-link:hover {
}

.nav-link.active {
}

.nav-link.active:hover {
}

/* Second row: user menu left-justified */
.user-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-start;
  max-width: 1140px;
  margin: 0 1rem 0.25rem 1rem;  /* T R B L */
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.user-card-title{
  font-weight: 600;
  display: inline-block;
}
.dropdown-link{
}

.auth-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Action buttons - Keep buttons in same row */
.owner-actions, .action-buttons, .form-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.owner-actions form, .action-buttons form, .form-actions form {
  display: inline;
  margin: 0;
}

.red_test_border
{
  border: 1px solid red;
}
.blue_test_border
{
  border: 1px solid blue;
}
.green_test_border
{
  border: 1px solid green;
}

/* User separator on community members page */
.user-separator {
  border: none;
  height: 1px;
  background-color: #e0e0e0;
  margin: 1rem 0;
  opacity: 0.6;
}

/* Policy modal styling */
.policy-section {
  margin-bottom: 1.5rem;
}

.policy-section h6 {
  color: var(--header-footer-bg);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.policy-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.policy-list li {
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.policy-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--header-footer-bg);
  font-weight: bold;
}

.goal-statement {
  font-style: italic;
  color: #2c3e50;
  padding: 0.75rem;
  background-color: #f8f9fa;
  border-radius: 4px;
  border-left: 3px solid var(--header-footer-bg);
  margin: 0;
}

.page-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.page-footer-actions {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
}

/* Page title with icon styling */
.page-title {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.page-title-icon {
  font-size: 2.5rem;
}

.page-title-text {
  font-size: 2.5rem;
  font-weight: 600;
  color: #2c3e50;
}
.page-title-tag{
  font-style: italic;
  font-size: 1.15rem;
}

/* Footer styling - same as header but half height */
.site-footer {
  width: 100%;
  padding: 0.75rem 0;
  background-color: var(--header-footer-bg);
  border-radius: 8px;
  margin-top: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.site-footer p {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}

.emergency-badge {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2c3e50;
}

/* Events Table Styles */
.events-table-container {
  margin: 2rem 0;
  overflow-x: auto;
  background: white;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.events-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.events-table thead {
  background-color: var(--header-footer-bg);
  border-bottom: 2px solid #dee2e6;
}

.events-table th {
  padding: 6px 10px;
  text-align: left;
  font-weight: 600;
  color: #495057;
  border-bottom: 1px solid #dee2e6;
}

.events-table td {
  padding: 6px 10px;
  border-bottom: 1px solid #f1f3f4;
  vertical-align: middle;
}

.events-table tbody tr:hover {
  background-color: #f8f9fa;
}

.event-title-link {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

.event-title-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Responsive table */
@media (max-width: 768px) {
  .events-table-container {
    margin: 1rem -1rem;
    border-radius: 0;
  }
  
  .events-table th,
  .events-table td {
    padding: 6px 10px;
    font-size: 14px;
  }
}
