body {
    font-family: Calibri, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
}

/* General container styling */
.container {
    width: 100%; /* Ensure the container spans the full width */
    max-width: 1200px; /* or 800px, adjust as needed */
    background-color: #f9f9f9; /* Lighter background for light mode */
    color: #333333; /* Default light mode text color */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0 auto; /* Center the container horizontally */
    border-bottom: 1px solid #cccccc; /* Add or darken bottom border */
}

/* Dark mode styles for container */
body.dark-mode .container {
    background-color: #232323;
    color: #e0e0e0;
    box-shadow: 0 2px 8px rgba(20, 24, 40, 0.5);
    border-bottom: 1px solid #2e3650;
}

h1 {
    text-align: center;
    color: #444;
}

h2 {
    text-align: center;
    color: #444;
    font-size: 1.5em; /* Reduced size compared to <h1> */
    margin-top: 20px;
}

/* Default font color for <h2> in light mode */
h2 {
    color: #444; /* Match the font color from index.php */
}

/* Font color for <h2> in dark mode */
body.dark-mode h2 {
    color: #f0f0f0; /* Match the font color for dark mode in index.php */
}

body.dark-mode h2 {
    color: #f0f0f0; /* Font color for dark mode to match index.php */
}

form {
    margin-top: 20px;
    font-family: Calibri, sans-serif;
}

label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    font-family: Calibri, sans-serif;
}

input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: Calibri, sans-serif;
}

/* Light mode styles for buttons */
button {
    font-family: Calibri, sans-serif; /* Change font to Calibri */
    background-color: #007bff;
    color: #ffffff; /* Change button font color to white in light mode */
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.07);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

button:hover {
    background-color: #0056b3;
    color: #e0e0e0; /* Change button font color to light gray on hover */
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Red button style for both light and dark mode */
button.red,
input[type="button"].red,
input[type="submit"].red,
body.dark-mode button.red,
body.dark-mode input[type="button"].red,
body.dark-mode input[type="submit"].red {
    background-color: #d32f2f !important;
    color: #fff !important;
    border: none !important;
    box-shadow: none;
    transition: background 0.2s, color 0.2s;
}

button.red:hover,
input[type="button"].red:hover,
input[type="submit"].red:hover,
body.dark-mode button.red:hover,
body.dark-mode input[type="button"].red:hover,
body.dark-mode input[type="submit"].red:hover {
    background-color: #b71c1c !important;
    color: #fff !important;
}

button.gray,
body.dark-mode button.gray {
    background-color: #666 !important;
    color: #fff !important;
    border: none !important;
}

body.dark-mode button.gray:hover {
    background-color: #777 !important;
}

.error {
    color: red;
    font-weight: bold;
}

.back-button {
    margin-top: 20px;
    text-align: center;
}

.back-button a {
    text-decoration: none;
}

/* General table styles */
table {
    width: 100%;
    border-collapse: separate; /* Use separate to allow border-radius */
    border-spacing: 0;
    margin: 20px 0; /* Add consistent margin */
    font-size: 16px;
    text-align: left;
    border: 1px solid #ddd; /* Default light mode border */
    border-radius: 7px; /* Slightly more rounded corners */
    overflow: hidden;    /* Ensures corners are visible */
}

/* Rounded corners for table header and footer */
table th:first-child {
    border-top-left-radius: 7px;
}
table th:last-child {
    border-top-right-radius: 7px;
}
table tr:last-child td:first-child {
    border-bottom-left-radius: 7px;
}
table tr:last-child td:last-child {
    border-bottom-right-radius: 7px;
}

/* Table header styles */
table th, table td {
    padding: 10px;
    border: 1px solid #ddd; /* Default light mode cell border */
}

table th {
    background-color: #007bff; /* Default light mode header background */
    color: white;
    cursor: pointer;
}

table tr:nth-child(even) {
    background-color: #f2f2f2; /* Default light mode alternating row color */
}

table tr:hover {
    background-color: #e6e6e6; /* Default light mode hover color */
}

table a {
    color: #007bff;
    text-decoration: none;
}

table a:hover {
    text-decoration: underline;
}

form input,
form select,
form button,
form label {
    font-family: Calibri, sans-serif;
}

/* Make the ID column thinner only for tables with the ID 'klienciTable' */
#klienciTable th:first-child,
#klienciTable td:first-child {
    width: 50px; /* Adjust the width as needed */
    text-align: center;
}

#devicesTable th:first-child,
#devicesTable td:first-child {
    width: 50px; /* Adjust the width as needed */
    text-align: center;
}

#urzadzeniaTable th:first-child,
#urzadzeniaTable td:first-child {
    width: 50px; /* Adjust the width as needed */
    text-align: center;
}

/* Dark mode styles */
body.dark-mode {
    background-color: #121212;
    color: #cccccc; /* Change base font color to light gray */
}

body.dark-mode a {
    color: #8ab4f8; /* Change link color to light gray */
    transition: color 0.2s;
}

body.dark-mode a:hover {
    color: #b3d1ff;
    text-decoration: underline;
}

/* Dark mode styles for tables */
body.dark-mode table {
    background-color: #232323;
    color: #e0e0e0; /* Change table font color to light gray */
    border: 1px solid #333; /* Match table border color to index.php */
}

body.dark-mode table th, 
body.dark-mode table td {
    border: 1px solid #333; /* Match cell border color to index.php */
}

body.dark-mode table th {
    background-color: #2c2c2c;
    color: #fafafa; /* Change table header font color to a lighter gray */
}

body.dark-mode table td {
    color: #e0e0e0; /* Ensure table cell font color is light gray */
}

body.dark-mode table tr:nth-child(even) {
    background-color: #282828 !important;
}

body.dark-mode table tr:nth-child(odd) {
    background-color: #232323 !important;
}

body.dark-mode table tr:hover {
    background-color: #383838 !important;
    transition: background-color 0.3s ease;
}

/* Dark mode styles for buttons */
body.dark-mode button {
    background: linear-gradient(90deg, #22335a 0%, #1a2980 100%);
    color: #eaf1fb;
    border: 1px solid #39507a;
    box-shadow: 0 2px 8px rgba(34, 51, 90, 0.18);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

body.dark-mode button:hover {
    background: linear-gradient(90deg, #27408b 0%, #2d4373 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(34, 51, 90, 0.28);
}

/* Gray button style for dark mode */
body.dark-mode button:not(.red),
body.dark-mode input[type="button"]:not(.red),
body.dark-mode input[type="submit"]:not(.red) {
    background-color: #444 !important;
    color: #f0f0f0 !important;
    border: none !important;
    box-shadow: none;
    transition: background 0.2s, color 0.2s;
}

body.dark-mode button:not(.red):hover,
body.dark-mode input[type="button"]:not(.red):hover,
body.dark-mode input[type="submit"]:not(.red):hover {
    background-color: #666 !important;
    color: #fff !important;
}

body.dark-mode .footer {
    background-color: #181818 !important;
    color: #b0b0b0; /* Change footer font color to light gray */
    border-top: 1px solid #333;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
}

/* Footer styles */
.footer {
    width: 100%;
    background-color: #f4f4f9; /* Slightly darker, matches body background */
    color: #333333;
    text-align: center;
    padding: 10px;
    border-top: 1px solid #cccccc;
    position: relative;
    box-sizing: border-box;
}

/* Footer styles in dark mode */
body.dark-mode .footer {
    background-color: #181818 !important; /* Match the page background in dark mode */
    color: #b0b0b0; /* Change footer font color to light gray */
    border-top: 1px solid #333; /* Dark mode border */
    text-align: center; /* Center the text */
    padding: 10px; /* Add padding for spacing */
    box-sizing: border-box; /* Include padding and border in width calculation */
}

/* Footer styles in dark mode */
body.dark-mode footer {
    background-color: #181818 !important;
    color: #b0b0b0;
    border-top: 1px solid #333;
    padding: 10px;
    text-align: center;
}

/* Slider switch styles */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #007bff;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Dark mode styles for header title and user info */
body.dark-mode .header-title {
    color: #fafafa; /* Lighter color for "Lista klientów" in dark mode */
}

body.dark-mode .user-info {
    color: #fafafa; /* Lighter color for "Zalogowany użytkownik" in dark mode */
}

/* Dark mode styles for specific tables */
body.dark-mode #klienciTable tr:nth-child(even),
body.dark-mode #devicesTable tr:nth-child(even),
body.dark-mode #urzadzeniaTable tr:nth-child(even) {
    background-color: #282828 !important; /* Slightly lighter color for alternating rows */
}

body.dark-mode #klienciTable tr:nth-child(odd),
body.dark-mode #devicesTable tr:nth-child(odd),
body.dark-mode #urzadzeniaTable tr:nth-child(odd) {
    background-color: #232323 !important; /* Default dark mode row color */
}

body.dark-mode #klienciTable tr:hover,
body.dark-mode #devicesTable tr:hover,
body.dark-mode #urzadzeniaTable tr:hover {
    background-color: #383838 !important; /* Highlight color for rows on hover */
    transition: background-color 0.3s ease; /* Smooth transition effect */
}

/* Match dropdown (select) background and font color to other form inputs */
select {
    background-color: #f9f9f9;   /* Matches other form input backgrounds in light mode */
    color: #222;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px;
    font-family: Calibri, sans-serif;
}

/* Dark mode for dropdowns */
body.dark-mode select {
    background-color: #232323;   /* Match .container and form backgrounds in dark mode */
    color: #e0e0e0;
    border: 1px solid #444;
}

/* Modal background for dark mode */
body.dark-mode .modal-content {
    background-color: #232323;
    color: #e0e0e0;
    border: 1px solid #444;
    box-shadow: 0 4px 24px rgba(34, 34, 34, 0.25);
}

/* Dark mode for text fields and textarea */
body.dark-mode input[type="text"],
body.dark-mode textarea {
    background-color: #232323;
    color: #e0e0e0;
    border: 1px solid #444;
}

body.dark-mode input[type="text"]:focus,
body.dark-mode textarea:focus,
body.dark-mode select:focus {
    outline: none;
    border-color: #8ab4f8;
    box-shadow: 0 0 0 2px #8ab4f833;
}

/* Make links in the second row (first data row) of devicesTable black in light mode */
#devicesTable tbody tr:nth-child(1) a {
    color: #000 !important;
}

/* Optionally, ensure dark mode stays consistent */
body.dark-mode #devicesTable tbody tr:nth-child(1) a {
    color: #cccccc !important;
}

/* Make links in the second column of devicesTable black in light mode */
#devicesTable tbody td:nth-child(2) a {
    color: #000 !important;
}

/* Ensure dark mode stays consistent */
body.dark-mode #devicesTable tbody td:nth-child(2) a {
    color: #cccccc !important;
}

/* Remove or comment out any border or box-shadow for the footer */
footer, .footer {
    border-top: none !important;
    box-shadow: none !important;
}

/* Consistent style for user-info across all pages */
.user-info {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
}

body.dark-mode .user-info {
    color: #fafafa;
}

body.dark-mode #searchInput {
    background-color: #232323;
    color: #e0e0e0;
    border: 1px solid #444;
}

body.dark-mode #searchInput,
body.dark-mode input#searchInput,
body.dark-mode input[type="text"]#searchInput,
body.dark-mode input[type="search"]#searchInput {
    background-color: #232323 !important;
    color: #e0e0e0 !important;
    border: 1px solid #444 !important;
}

/* Dark mode slider switch */
body.dark-mode .slider {
    background-color: #444;
}
body.dark-mode input:checked + .slider {
    background-color: #8ab4f8;
}
body.dark-mode .slider:before {
    background-color: #e0e0e0;
}

/* --- Improved dark mode table row backgrounds for better harmony --- */
body.dark-mode table tr:nth-child(even),
body.dark-mode #klienciTable tr:nth-child(even),
body.dark-mode #devicesTable tr:nth-child(even),
body.dark-mode #urzadzeniaTable tr:nth-child(even) {
    background-color: #282828 !important; /* Deep blue-gray for even rows */
}

body.dark-mode table tr:nth-child(odd),
body.dark-mode #klienciTable tr:nth-child(odd),
body.dark-mode #devicesTable tr:nth-child(odd),
body.dark-mode #urzadzeniaTable tr:nth-child(odd) {
    background-color: #232323 !important; /* Match container background for odd rows */
}

body.dark-mode table tr:hover,
body.dark-mode #klienciTable tr:hover,
body.dark-mode #devicesTable tr:hover,
body.dark-mode #urzadzeniaTable tr:hover {
    background-color: #383838 !important; /* Vivid blue highlight on hover */
    transition: background-color 0.3s ease;
}

/* --- Footer: match container and table for seamless look --- */
body.dark-mode .footer,
body.dark-mode footer {
    background-color: #232323 !important; /* Match container/table background */
    color: #a4b0c8;
    border-top: 1px solid #2e3650;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
    box-shadow: none;
}

/* Footer in dark mode: perfectly match container/table background */
body.dark-mode .footer,
body.dark-mode footer {
    background-color: #232323 !important; /* Exact match with .container and table */
    color: #a4b0c8;
    border-top: 1px solid #2e3650;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
    box-shadow: none;
}

/* Footer in dark mode: match page background, not container */
body.dark-mode .footer,
body.dark-mode footer {
    background-color: #121212 !important; /* Match body background in dark mode */
    color: #a4b0c8;
    border-top: 1px solid #2e3650;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
    box-shadow: none;
}

/* --- Remove blue gradient and enforce gray buttons in dark mode --- */
body.dark-mode button:not(.red),
body.dark-mode input[type="button"]:not(.red),
body.dark-mode input[type="submit"]:not(.red) {
    background: none !important;
    background-color: #444 !important;
    color: #f0f0f0 !important;
    border: none !important;
    box-shadow: none !important;
    transition: background 0.2s, color 0.2s;
}

body.dark-mode button:not(.red):hover,
body.dark-mode input[type="button"]:not(.red):hover,
body.dark-mode input[type="submit"]:not(.red):hover {
    background-color: #666 !important;
    color: #fff !important;
}

/* Optionally, remove or comment out any previous blue gradient rules for dark mode buttons to avoid conflicts: */
/*
body.dark-mode button {
    background: linear-gradient(90deg, #22335a 0%, #1a2980 100%);
    color: #eaf1fb;
    border: 1px solid #39507a;
    box-shadow: 0 2px 8px rgba(34, 51, 90, 0.18);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
body.dark-mode button:hover {
    background: linear-gradient(90deg, #27408b 0%, #2d4373 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(34, 51, 90, 0.28);
}
*/

/* Dark mode: make date input background dark */
body.dark-mode input[type="date"] {
    background-color: #232323 !important;
    color: #e0e0e0 !important;
    border: 1px solid #444 !important;
}

/* Dark mode: make 'wyloguj' button (logout) dark red */
body.dark-mode .logout-button {
    background-color: #8b1a1a !important;  /* Dark red */
    color: #fff !important;
    border: none !important;
    transition: background 0.2s, color 0.2s;
}

body.dark-mode .logout-button:hover {
    background-color: #b71c1c !important;  /* Brighter dark red on hover */
    color: #fff !important;
}

body.dark-mode button.logout-button {
    background-color: #8b1a1a !important;
    color: #fff !important;
    border: none !important;
    transition: background 0.2s, color 0.2s;
}

body.dark-mode button.logout-button:hover {
    background-color: #b71c1c !important;
    color: #fff !important;
}

/* Make modal gray buttons gray in dark mode, and red buttons red */
body.dark-mode .modal-buttons button[style*="background-color: gray"] {
    background-color: #444 !important;
    color: #fff !important;
    border: none !important;
}

body.dark-mode .modal-buttons button[style*="background-color: red"] {
    background-color: #8b1a1a !important;
    color: #fff !important;
    border: none !important;
}

/* Make sure this is at the END of your CSS file */
body.dark-mode .modal-content .modal-buttons button.red {
    background-color: #d32f2f !important;
    color: #fff !important;
    border: none !important;
    box-shadow: none !important;
}

/* styles.css */
.client-info-list {
    max-width: 520px;
    margin: 0 auto 32px auto;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(44,62,80,0.10);
    overflow: hidden;
    background: #f7f7fa;
}
.client-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 18px;      /* was 16px 22px */
    font-size: 1em;         /* was 1.07em */
    min-height: 24px;       /* ensure a minimum but smaller height */
    transition: background 0.2s;
    border-bottom: 1px solid #ececec;
}
.client-row-even {
    background: #fff;
    box-shadow: 0 1px 6px rgba(44,62,80,0.04);
}
.client-row-odd {
    background: #f2f6fa;
}
.client-label {
    font-weight: 500;
    color: #3a3a3a;
    min-width: 160px;
}
.client-value {
    color: #222;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}
.client-row:last-child {
    border-bottom: none;
}
body.dark-mode .client-info-list {
    background: #2a2d32;
    box-shadow: 0 4px 24px rgba(0,0,0,0.45);
}
body.dark-mode .client-row-even {
    background: #2f3238;
}
body.dark-mode .client-row-odd {
    background: #26292e;
}
body.dark-mode .client-label {
    color: #d3d7de;
}
body.dark-mode .client-value {
    color: #f2f2f2;
}

body.dark-mode .client-label,
body.dark-mode .client-value {
    color: #fafafa !important;
}

/* Make under-row shadows of klienci in dark mode darker */
body.dark-mode .client-row-even,
body.dark-mode .client-row-odd {
    box-shadow: 0 4px 18px rgba(0,0,0,0.55);
}

/* Make between-rows shadow of klienci in dark mode darker */
body.dark-mode .client-row-even,
body.dark-mode .client-row-odd {
    box-shadow: 0 6px 24px rgba(0,0,0,0.85);
}

/* Make between-rows shadow of klienci in dark mode even darker */
body.dark-mode .client-row-even,
body.dark-mode .client-row-odd {
    box-shadow: 0 8px 32px rgba(0,0,0,0.95);
}

/* Make between-rows shadow of klienci in dark mode very dark (but not red) */
body.dark-mode .client-row-even,
body.dark-mode .client-row-odd {
    box-shadow: 0 8px 32px rgba(0,0,0,0.98) !important;
}

/* Make shadows between rows of 'klienci' in dark mode lighter */
body.dark-mode .client-row-even,
body.dark-mode .client-row-odd {
    box-shadow: 0 8px 32px rgba(0,0,0,0.35) !important;
}

/* Make between-rows shadow of klienci a bit darker in light mode too */
.client-row-even,
.client-row-odd {
    box-shadow: 0 4px 18px rgba(44,62,80,0.18);
}

/* Restore normal shadow for klienci rows, but make it darker than default */
.client-row-even,
.client-row-odd {
    box-shadow: 0 2px 10px rgba(44,62,80,0.28);
}

body.dark-mode .client-row-even,
body.dark-mode .client-row-odd {
    box-shadow: 0 4px 18px rgba(0,0,0,0.75);
}

/* Make spaces (shadows) between rows in light mode much darker for klienci in user.php */
.client-row-even,
.client-row-odd {
    box-shadow: 0 8px 32px rgba(44,62,80,0.45) !important;
}

/* Make spaces (shadows) between rows in light mode a bit lighter for klienci in user.php */
.client-row-even,
.client-row-odd {
    box-shadow: 0 8px 32px rgba(44,62,80,0.22) !important;
}

/* --- FIXED: Cleaned up duplicate/conflicting box-shadow rules for klienci rows --- */

/* LIGHT MODE: Much darker shadow between rows for klienci in user.php */
.client-row-even,
.client-row-odd {
    box-shadow: 0 8px 32px rgba(44,62,80,0.22) !important;
}

/* DARK MODE: Lighter shadow between rows for klienci */
body.dark-mode .client-row-even,
body.dark-mode .client-row-odd {
    box-shadow: 0 8px 32px rgba(0,0,0,0.35) !important;
}

/* --- The rest of your CSS remains unchanged --- */

/* Device info cards, matching klienci style */
.device-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 32px;
    align-items: center;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(44,62,80,0.07);
    padding: 12px 22px;
    cursor: pointer;
    transition: box-shadow 0.2s, background 0.2s;
    border: 1px solid #ececec;
    min-width: 120px;
    font-size: 1em;
    color: #222;
}
body.dark-mode .device-info-list {
    background: none;
}
body.dark-mode .device-row {
    background: #23272e;
    color: #fff;
    border: 1px solid #2c2f36;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
body.dark-mode .device-row:hover {
    background: #252b33;
}
body.dark-mode .device-label {
    color: #fff;
}

/* "Edycja" button look like other buttons but green */
.action-btn.edit-btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 6px;
    border: none;
    background: #1cc88a;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(44,62,80,0.13);
    transition: background 0.18s, box-shadow 0.18s, color 0.18s;
    text-decoration: none;
}
.action-btn.edit-btn:hover {
    background: #17a673;
    color: #fff;
}
body.dark-mode .action-btn.edit-btn {
    background: #198754;
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
body.dark-mode .action-btn.edit-btn:hover,
body.dark-mode .action-btn.edit-btn:focus {
    background: #145c32;
    color: #fff;
    box-shadow: 0 4px 18px rgba(0,0,0,0.28);
}

/* Improved searchbar appearance for index.php and devices.php */
#searchInput,
#deviceSearchInput {
    width: 320px !important;
    max-width: 90vw;
    min-width: 0;
    padding: 6px 12px !important;
    border: 1.5px solid #007bff;
    border-radius: 6px !important;
    font-size: 1em;
    background: #f7f9fc;
    color: #222;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(44,62,80,0.10);
    transition: border 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
}
#searchInput:focus,
#deviceSearchInput:focus {
    border-color: #0056b3;
    background: #fff;
    box-shadow: 0 4px 16px rgba(44,62,80,0.18);
}
body.dark-mode #searchInput,
body.dark-mode #deviceSearchInput {
    background: #232323 !important;
    color: #e0e0e0 !important;
    border: 1.5px solid #444 !important;
    box-shadow: 0 2px 8px rgba(20,24,40,0.25);
}
body.dark-mode #searchInput:focus,
body.dark-mode #deviceSearchInput:focus {
    background: #181a1b !important;
    border-color: #666 !important;
    box-shadow: 0 4px 16px rgba(20,24,40,0.38);
}

button.delete-btn,
button.red,
.modal-buttons .delete-btn,
.modal-buttons .red {
    background: #d32f2f !important;
    color: #fff !important;
    border: none !important;
}
body.dark-mode button.delete-btn,
body.dark-mode button.red,
body.dark-mode .modal-buttons .delete-btn,
body.dark-mode .modal-buttons .red {
    background: #ff3b3b !important;
    color: #fff !important;
}
body.dark-mode button.delete-btn:hover,
body.dark-mode button.red:hover,
body.dark-mode .modal-buttons .delete-btn:hover,
body.dark-mode .modal-buttons .red:hover {
    background: #b71c1c !important;
}

input#type {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: block;
}