:root {
  --primary-color: #007bff;
  --primary-dark: #0056b3;
  --secondary-color: #ff0000;
  --secondary-dark: #cc0000;
  --bg-light: #f4f4f9;
  --border-color: #ccc;
  --shadow-color: rgba(0, 0, 0, 0.2);
}

/* Reset */
body,
html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: white;
    box-sizing: border-box;
}

/* General styles for inputs, selects, and buttons */
input,
select,
button,
textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px var(--shadow-color);
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    box-shadow: none;
}

button.btn-small {
    display: inline-block;
    width: auto;
    padding: 5px 10px;
    font-size: 0.8em;
}

.popup-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

/* Standard button style */
button {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    border: none;
}

/* Styling für den Löschen-Button */
.secondaryButton {
    background-color: var(--secondary-color);
}

.secondaryButton:hover {
    background-color: var(--secondary-dark);
}

/* Hover styles for inputs, selects, and buttons */
input:hover,
select:hover,
button:hover {
    box-shadow: 0 4px 8px var(--shadow-color);
}

/* Active styles for inputs, selects, and buttons */
input:active,
select:active,
button:active {
    transform: translateY(1px);
}

/* Focus styles for inputs, selects, and buttons */
input:focus,
select:focus,
button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.4);
}

/* Button hover style */
button:hover {
    background-color: var(--primary-dark);
}

/* Blink animation */
@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Blinking element */
.blinking {
    width: 10px;
    height: 10px;
    background-color: orange;
    border-radius: 50%;
    border: 2px solid white;
    animation: blink 1s infinite;
}

/* Popup */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
}

.popup-content {
    background-color: white;
    position: relative;
    width: 90%;
    max-width: 600px;
    margin: 10% auto;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.close-btn:hover {
    color: var(--secondary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .popup-content {
        width: 95%;
        margin: 5% auto;
    }
    
    input, select, button, textarea {
        padding: 12px 15px;
        font-size: 16px; /* Better for touch */
    }
}

/* Accessibility */
button:focus-visible, 
input:focus-visible, 
select:focus-visible, 
textarea:focus-visible {
    outline: 3px solid rgba(0, 123, 255, 0.5);
    outline-offset: 1px;
}