/* =============== BASE STYLES (from combined_code (36).md) =============== */

body {
  background-color: #0a0b0e;
  color: #fff;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

header {
  background-color: #0a0b0e;
  color: #fff;
  padding: 15px 10px 5px 10px;
  text-align: center;
}

header h1 {
  margin: 10px 0 15px 0;
  font-size: 1.8em;
  color: #fff;
  font-weight: bold;
}

header h1 a {
  color: #fff;
  text-decoration: none;
}

nav {
  background-color: #0a0b0e;
  color: #fff;
  padding: 8px 0;
  text-align: center;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* Style for main navigation buttons */
nav a, .nav-links a {
  background-color: #1e88e5; /* Standard blue */
  color: #fff !important;
  border: none;
  border-radius: 6px;
  padding: 9px 15px;
  margin: 2px 4px;
  text-decoration: none !important;
  font-weight: bold;
  font-size: 0.9em;
  display: inline-block;
  transition: background-color 0.15s ease;
}

nav a:hover, .nav-links a:hover {
  background-color: #1565c0; /* Darker blue on hover */
  text-decoration: none;
}

nav a.nav-logout, .nav-links a.nav-logout {
  background-color: #d32f2f;
}

nav a.nav-logout:hover, .nav-links a.nav-logout:hover {
  background-color: #b71c1c;
}

/* General Buttons */
.button {
  background-color: #1e88e5; /* Standard blue */
  color: #fff !important;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  padding: 9px 15px;
  margin: 4px 2px;
  text-decoration: none !important;
  display: inline-block;
  font-weight: bold;
  font-size: 0.9em;
  transition: background-color 0.15s ease;
}

.button:hover {
  background-color: #1565c0; /* Darker blue on hover */
  text-decoration: none;
}

.button-danger, .btn-danger {
  background-color: #d32f2f !important;
}

.button-danger:hover, .btn-danger:hover {
  background-color: #b71c1c !important;
}

.button-secondary, .btn-secondary {
  background-color: #555 !important;
}

.button-secondary:hover, .btn-secondary:hover {
  background-color: #777 !important;
}

.button-success, .btn-success {
  background-color: #2e7d32 !important;
}

.button-success:hover, .btn-success:hover {
  background-color: #1b5e20 !important;
}

/* Style for folder filter buttons */
.filter-button, .folder-tab {
  background-color: #555; /* Default grey background */
  color: #fff !important;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  padding: 7px 14px;
  margin: 3px 4px;
  text-decoration: none !important;
  display: inline-block;
  font-size: 0.9em;
  font-weight: normal;
  transition: background-color 0.15s ease;
}

.filter-button:hover, .folder-tab:hover {
  background-color: #777; /* Lighter grey on hover */
  text-decoration: none;
}

/* Style for the ACTIVE folder filter button */
.filter-button-active, .filter-button.active, .folder-tab.active {
  background-color: #1e88e5 !important; /* Active filter is blue */
  color: #fff !important;
  font-weight: bold;
}

.filter-button-active:hover, .filter-button.active:hover, .folder-tab.active:hover {
  background-color: #1565c0 !important; /* Darker blue on hover for active */
}

/* Container */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 15px 20px;
  background-color: #0a0b0e;
  box-sizing: border-box;
}

/* Inputs, selects, textareas */
input, select, textarea {
  background-color: #33363f;
  color: #fff;
  border: 1px solid #666;
  border-radius: 5px;
  padding: 8px 10px;
  margin: 5px 0;
  font-size: 0.95em;
  box-sizing: border-box;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #1e88e5;
  box-shadow: 0 0 0 2px rgba(30,136,229,0.3);
}

input[type="checkbox"], input[type="radio"] {
  accent-color: #1e88e5;
  cursor: pointer;
  margin-right: 5px;
}

/* Table styling: crisp borders and dark styling */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  border: 1px solid #404040;
  background-color: #12141a;
}

table th {
  background-color: #1a1d24;
  color: #fff;
  border: 1px solid #404040;
  padding: 10px 12px;
  vertical-align: middle;
  text-align: center;
  font-size: 0.9em;
  font-weight: bold;
}

table td {
  border: 1px solid #404040;
  padding: 9px 12px;
  vertical-align: middle;
  text-align: center;
  font-size: 0.9em;
  color: #e0e0e0;
}

table tr:hover td {
  background-color: #191c24;
}

/* Status Badges */
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.8em;
  font-weight: bold;
}

.badge-pending {
  background-color: #504a00;
  color: #fff176;
}

.badge-confirmed {
  background-color: #1b5e20;
  color: #a5d6a7;
}

.badge-snoozed {
  background-color: #3e2723;
  color: #ffcc80;
}

.badge-normal {
  background-color: #333;
  color: #ddd;
}

/* Flash Messages */
.flash-messages {
  margin-bottom: 15px;
}

.flash {
  padding: 12px 15px;
  margin-bottom: 10px;
  border-radius: 6px;
  font-weight: bold;
}

.flash-success {
  background-color: #1b5e20;
  color: #e8f5e9;
  border: 1px solid #2e7d32;
}

.flash-error {
  background-color: #b71c1c;
  color: #ffebee;
  border: 1px solid #d32f2f;
}

.flash-info {
  background-color: #0d47a1;
  color: #e3f2fd;
  border: 1px solid #1e88e5;
}

/* Card / Box style */
.card-box {
  background-color: #12141a;
  border: 1px solid #404040;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
}

/* Search input */
.search-bar {
  width: 100%;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid #555;
  background: #1a1d24;
  color: #fff;
  font-size: 0.95em;
  box-sizing: border-box;
}

/* Logs color-coding */
.log-error {
  color: #ff4d4d;
}
.log-warning {
  color: #ffa726;
}
.log-info {
  color: #66bb6a;
}
.log-debug {
  color: #bdbdbd;
}
.log-event {
  color: #4fc3f7;
}
.log-other {
  color: #ccc;
}

/* Modal Styling */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.75);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #161820;
  border: 1px solid #404040;
  border-radius: 8px;
  padding: 25px;
  width: 90%;
  max-width: 480px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

/* =============== MOBILE-SPECIFIC STYLES =============== */

@media screen and (max-width: 768px) {
  .container {
    width: 98%;
    padding: 8px;
  }
  
  header h1 {
    font-size: 1.4em;
  }

  nav a, .nav-links a {
    padding: 7px 10px;
    font-size: 0.8em;
    margin: 2px;
  }

  .button {
    padding: 8px 12px;
    font-size: 0.85em;
  }

  .filter-button, .folder-tab {
    padding: 6px 10px;
    font-size: 0.82em;
    margin: 2px;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  table th, table td {
    padding: 6px 8px;
    font-size: 0.82em;
  }
}
