:root { --issue-header-color: #4a90e2; } /* fallback if PHP didn’t run */


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px;

}

#tabella_issue_fadly_wrapper {
    max-width: 1440px;
}
body.light-mode {
  background-color: #fff;
  color: #000;
}

body.light-mode #tabella_issue_fadly {
  background-color: #fff;
}

body.light-mode .accordion {
  background-color: #eee;
  color: #444;
}

body.light-mode .accordion.active,
body.light-mode .accordion:hover {
  background-color: #ccc;
}

body.light-mode .panel {
  background-color: white;
  color: #000;
}
body.dark-mode {
  background-color: 
#121212;
  color: 
#e0e0e0;
}

body.dark-mode #tabella_issue_fadly {
  background-color: 
#1f1f1f;
  color: 
#e0e0e0;
}

body.dark-mode #tabella_issue_fadly thead {
  background-color: 
#2a3f5f;
  color: #fff;
}

body.dark-mode #tabella_issue_fadly tbody td {
  color: #ddd;
}

body.dark-mode #tabella_issue_fadly tbody tr:hover {
  background-color: 
#2a2a2a;
}

body.dark-mode #tabella_issue_fadly tbody tr:nth-child(even) {
  background-color: 
#1c1c1c;
}

/* Accordion in dark mode */
body.dark-mode .accordion {
  background-color: 
#2e2e2e;
  color: #ccc;
}

body.dark-mode .accordion.active,
body.dark-mode .accordion:hover {
  background-color: #444;
}

body.dark-mode .panel {
  background-color: 
#1e1e1e;
  color: #ccc;
}

/* Loader Spinner - optional dark mode tweak */
body.dark-mode .spinner {
  border: 6px solid #444;
  border-top: 6px solid 
#4a90e2;
}

#tabella_issue_fadly {
    width: 1440px;
    min-width: 1100px;
    border-collapse: collapse;
    margin: 20px 0;
    table-layout: auto;
    font-size: 16px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    background-color: #fff;
}

#tabella_issue_fadly thead {
   background-color: var(--issue-header-color);
   color: #fff;
}

#tabella_issue_fadly thead th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

#tabella_issue_fadly tbody tr {
    border-bottom: 1px solid 
#e0e0e0;
}
form {
  max-width: 600px;
  background: #fff;
  padding: 20px 25px;
  margin: 30px 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

form h1 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #4a90e2;
}

form label {
  font-weight: 600;
  display: block;
  margin: 12px 0 6px;
}

form input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

form input[type="text"]:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 4px rgba(74,144,226,0.5);
  outline: none;
}

/* WP button override */
form .button-primary {
  background: #4a90e2 !important;
  border: none !important;
  padding: 10px 18px !important;
  border-radius: 6px !important;
  font-size: 15px !important;
  font-weight: bold !important;
  transition: background 0.3s ease;
}

form .button-primary:hover {
  background: #357ABD !important;
}

/* Light mode */
body.light-mode form {
  background: #fff;
  color: #000;
}

/* Dark mode */
body.dark-mode form {
  background: #1f1f1f;
  color: #e0e0e0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

body.dark-mode form input[type="text"] {
  background: #2a2a2a;
  border: 1px solid #444;
  color: #ddd;
}

body.dark-mode form input[type="text"]:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 4px rgba(74,144,226,0.7);
}
#tabella_issue_fadly tbody td {
    padding: 12px 16px;
    color: #333;
    flex-shrink: 6;
    font-size: larger;
    font-weight: bold;
    vertical-align: top;
}

#tabella_issue_fadly tbody tr:hover {
    background-color: 
#f1f7ff;
}

#tabella_issue_fadly tbody tr:nth-child(even) {
    background-color: 
#fafafa;
}
#themeToggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    cursor: pointer;
    padding-left: 100px;
    background-color: #4a90e2;
    color: white;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
/* Accordion styles */
.accordion {
    background-color: #eee;
    color: #444;
    cursor: pointer;
    padding: 14px;
    text-align: left;
    border: none;
    outline: none;
    transition: 0.4s;
    font-weight: bold;
}

.accordion.active, .accordion:hover {
    background-color: #ccc;
}

.panel {
    padding: 10px 18px;
    background-color: white;
    display: none;
    overflow: hidden;
    border-top: 1px solid #ddd;
}

.label_badge{
 padding: 4px 8px;
  text-align: center;
  border-radius: 5px; 

}
/* Spinner for loader */
.spinner {
    border: 6px solid 
#f3f3f3;
    border-top: 6px solid 
#3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Optional: Filter button style if used */
@media (min-width: 768px) {
    .filterbtn {
        padding: 0 40px;
    }
}