/* Hygiene Protokoll - Kosmetikstudio Reinigungsprotokoll */
/* Alle Styles sind auf #hygiene-app-wrapper gescoped - keine Beeinflussung anderer Seiten */
/* Safari-optimiert für iOS und macOS */

/* === WRAPPER KONTEXT === */
#hygiene-app-wrapper {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 20px 0 50px 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important; /* Smooth scrolling auf iOS */
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-color: #0f3460 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    color: #ffffff !important;
    line-height: 1.6 !important;
    box-sizing: border-box !important;
    z-index: 99999 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* === RESET INNERHALB DES WRAPPERS === */
#hygiene-app-wrapper * {
    box-sizing: border-box;
}

/* === APP-INNERES LAYOUT === */
#hygiene-app-wrapper > * {
    max-width: 1200px;
    margin: 0 auto;
}

/* === SCROLLBARE AREA === */
#hygiene-app-wrapper {
    display: flex;
    flex-direction: column;
}

#hygiene-app-wrapper::-webkit-scrollbar {
    width: 10px;
}

#hygiene-app-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

#hygiene-app-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
}

#hygiene-app-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* === HEADER === */
#hygiene-app-wrapper header {
    position: relative;
    text-align: center;
    padding: 30px 20px 20px 20px !important;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    margin-bottom: 25px !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#hygiene-app-wrapper header:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#hygiene-app-wrapper header h1 {
    font-size: 1.8rem !important;
    margin: 0 !important;
    padding: 0 60px !important; /* Padding links und rechts für Button-Platz */
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 700 !important;
    text-align: center !important;
    animation: gradient 3s ease infinite !important;
    animation-fill-mode: forwards !important;
}

@media (max-width: 768px) {
    #hygiene-app-wrapper header h1 {
        font-size: 1.4rem !important;
        padding: 0 50px !important;
    }
}

@keyframes gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* === EMPLOYEE & TASKS GRIDS === */
#hygiene-app-wrapper #employees-grid,
#hygiene-app-wrapper #tasks-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
}

/* === SETTINGS BUTTON === */
#hygiene-app-wrapper .settings-btn {
    position: absolute;
    top: 50%;
    right: 30px; /* Mehr Abstand vom Rand */
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    z-index: 10;
}

/* Bei kleineren Bildschirmen */
@media (max-width: 768px) {
    #hygiene-app-wrapper .settings-btn {
        right: 20px;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

#hygiene-app-wrapper .settings-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #3498db;
    transform: translateY(-50%) rotate(90deg);
}

/* === SECTIONS === */
#hygiene-app-wrapper section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px !important;
    margin: 0 20px 25px 20px !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 1200px;
}

#hygiene-app-wrapper section h2 {
    font-size: 1.3rem !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
}

#hygiene-app-wrapper section:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#hygiene-app-wrapper section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #4ecdc4;
    border-bottom: 2px solid rgba(78, 205, 196, 0.3);
    padding-bottom: 10px;
}

#hygiene-app-wrapper section h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #3498db;
    border-bottom: 1px solid rgba(52, 152, 219, 0.3);
    padding-bottom: 8px;
}

#hygiene-app-wrapper section h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #3498db;
}

/* === EMPLOYEE SECTION === */
#hygiene-app-wrapper .employee-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

#hygiene-app-wrapper .employee-btn {
    padding: 15px 20px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
}

#hygiene-app-wrapper .employee-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
    color: #ffffff !important;
}

#hygiene-app-wrapper .employee-btn.selected {
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
    border-color: #3498db !important;
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4) !important;
    color: #ffffff !important;
}

/* === TASKS SECTION === */
#hygiene-app-wrapper .tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

#hygiene-app-wrapper .task-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#hygiene-app-wrapper .task-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(78, 205, 196, 0.3);
}

#hygiene-app-wrapper .task-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #4ecdc4;
}

#hygiene-app-wrapper .task-text {
    flex: 1;
    color: #ffffff;
    font-size: 0.95rem;
}

#hygiene-app-wrapper .task-item input[type="checkbox"]:checked + .task-text {
    color: #4ecdc4;
    font-weight: 600;
}

/* === QUICK ADD SECTION === */
#hygiene-app-wrapper .quick-add {
    display: flex !important;
    gap: 10px !important;
    margin-top: 15px !important;
}

#hygiene-app-wrapper .add-btn-success,
#hygiene-app-wrapper #btn-quick-add-task {
    background: linear-gradient(135deg, #27ae60, #2ecc71) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 15px !important;
    font-size: 1.2rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 10px rgba(46, 204, 113, 0.3) !important;
}

#hygiene-app-wrapper .add-btn-success:hover,
#hygiene-app-wrapper #btn-quick-add-task:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(46, 204, 113, 0.4) !important;
    background: linear-gradient(135deg, #2ecc71, #27ae60) !important;
}

#hygiene-app-wrapper .quick-add-input,
#hygiene-app-wrapper input[type="text"],
#hygiene-app-wrapper input[type="date"],
#hygiene-app-wrapper input[type="time"] {
    flex: 1;
    padding: 12px 15px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-size: 0.95rem !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

#hygiene-app-wrapper .quick-add-input::placeholder,
#hygiene-app-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

#hygiene-app-wrapper .quick-add-input:focus,
#hygiene-app-wrapper input[type="text"]:focus,
#hygiene-app-wrapper input[type="date"]:focus,
#hygiene-app-wrapper input[type="time"]:focus {
    outline: none !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: #3498db !important;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.2) !important;
}

/* === ALLE BUTTONS UNIVERSAL === */
#hygiene-app-wrapper button,
#hygiene-app-wrapper .btn,
#hygiene-app-wrapper input[type="button"],
#hygiene-app-wrapper input[type="submit"] {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    padding: 10px 20px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    text-decoration: none !important;
}

#hygiene-app-wrapper button:hover,
#hygiene-app-wrapper .btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-2px) !important;
}

#hygiene-app-wrapper button:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* === BUTTONS === */
#hygiene-app-wrapper .confirm-btn,
#hygiene-app-wrapper #btn-confirm-tasks {
    width: 100%;
    padding: 18px 25px;
    background: linear-gradient(135deg, #27ae60, #229954);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#hygiene-app-wrapper .confirm-btn:hover:not(:disabled),
#hygiene-app-wrapper #btn-confirm-tasks:hover:not(:disabled) {
    background: linear-gradient(135deg, #229954, #1e8449);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(39, 174, 96, 0.6);
    border-color: rgba(255, 255, 255, 0.5);
}

#hygiene-app-wrapper .confirm-btn:disabled,
#hygiene-app-wrapper #btn-confirm-tasks:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

#hygiene-app-wrapper .management-btn {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#hygiene-app-wrapper .management-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

#hygiene-app-wrapper .management-btn.add-btn {
    background: #27ae60;
    border-color: #229954;
}

#hygiene-app-wrapper .management-btn.add-btn:hover {
    background: #229954;
}

#hygiene-app-wrapper .management-btn.remove-btn {
    background: #e74c3c;
    border-color: #c0392b;
}

#hygiene-app-wrapper .management-btn.remove-btn:hover {
    background: #c0392b;
}

#hygiene-app-wrapper .management-btn.edit-btn {
    background: #3498db;
    border-color: #2980b9;
}

#hygiene-app-wrapper .management-btn.edit-btn:hover {
    background: #2980b9;
}

#hygiene-app-wrapper .management-btn.save-btn {
    background: #27ae60;
    border-color: #229954;
}

#hygiene-app-wrapper .management-btn.save-btn:hover {
    background: #229954;
}

#hygiene-app-wrapper .management-btn.cancel-btn {
    background: #95a5a6;
    border-color: #7f8c8d;
}

#hygiene-app-wrapper .management-btn.cancel-btn:hover {
    background: #7f8c8d;
}

/* === HISTORY SECTION === */
#hygiene-app-wrapper .history-list {
    max-height: 600px;
    overflow-y: auto;
}

#hygiene-app-wrapper .history-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
}

#hygiene-app-wrapper .history-week-group {
    margin-bottom: 30px;
}

#hygiene-app-wrapper .history-week-header {
    font-size: 1.3rem;
    font-weight: 600;
    color: #4ecdc4;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(78, 205, 196, 0.3);
}

#hygiene-app-wrapper .history-week-entries {
    display: grid;
    gap: 15px;
}

#hygiene-app-wrapper .history-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 15px;
    border-left: 4px solid #4ecdc4;
    transition: all 0.3s ease;
}

#hygiene-app-wrapper .history-item:hover {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#hygiene-app-wrapper .history-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

#hygiene-app-wrapper .history-employee {
    font-weight: 600;
    font-size: 1.05rem;
    color: #ffffff;
}

#hygiene-app-wrapper .history-date-time {
    display: flex;
    gap: 15px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

#hygiene-app-wrapper .history-tasks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

#hygiene-app-wrapper .history-task {
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    border: 1px solid rgba(78, 205, 196, 0.3);
}

#hygiene-app-wrapper .history-delete-btn {
    background: #e74c3c;
    border: none;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

#hygiene-app-wrapper .history-delete-btn:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

/* === SETTINGS SECTION === */
#hygiene-app-wrapper .settings-section {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 15px !important;
    padding: 0 !important;
    margin: 0 20px 25px 20px !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.4s ease !important;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}

#hygiene-app-wrapper .settings-section.hidden {
    display: none !important;
}

#hygiene-app-wrapper .settings-section.show {
    max-height: none !important;
    overflow: visible !important;
    opacity: 1;
    padding: 25px !important;
}

/* Setting Groups innerhalb der Settings Section */
#hygiene-app-wrapper .settings-section .setting-group {
    margin-bottom: 20px !important;
    padding: 15px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-radius: 10px !important;
}

#hygiene-app-wrapper .settings-section .setting-group h3 {
    margin: 0 0 15px 0 !important;
    color: #ffffff !important;
    font-size: 1.1rem !important;
}

/* Settings Listen für Mitarbeiter und Aufgaben */
#hygiene-app-wrapper #settings-employees,
#hygiene-app-wrapper #settings-tasks {
    max-height: 300px !important;
    overflow-y: auto !important;
    margin-top: 15px !important;
    padding: 10px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border-radius: 8px !important;
}

#hygiene-app-wrapper .settings-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px !important;
    margin-bottom: 8px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 6px !important;
    color: #ffffff !important;
}

#hygiene-app-wrapper .settings-item button {
    padding: 5px 10px !important;
    font-size: 0.85rem !important;
    background: rgba(231, 76, 60, 0.8) !important;
    border: none !important;
    color: white !important;
}

#hygiene-app-wrapper .section-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

#hygiene-app-wrapper .employee-management-section,
#hygiene-app-wrapper .tasks-management-section,
#hygiene-app-wrapper .data-management-section,
#hygiene-app-wrapper .delete-log-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#hygiene-app-wrapper .management-controls,
#hygiene-app-wrapper .tasks-management-controls {
    margin-bottom: 20px;
}

#hygiene-app-wrapper .add-employee,
#hygiene-app-wrapper .add-task-admin {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#hygiene-app-wrapper .input-group {
    display: flex;
    gap: 10px;
}

#hygiene-app-wrapper .input-group input {
    flex: 1;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.9rem;
}

#hygiene-app-wrapper .input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#hygiene-app-wrapper .input-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: #3498db;
}

#hygiene-app-wrapper .current-employees,
#hygiene-app-wrapper .current-tasks {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#hygiene-app-wrapper .employees-list,
#hygiene-app-wrapper .tasks-list {
    display: grid;
    gap: 10px;
}

#hygiene-app-wrapper .employee-item,
#hygiene-app-wrapper .task-item-admin {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#hygiene-app-wrapper .employee-item span,
#hygiene-app-wrapper .task-item-admin .task-name-display {
    color: #ffffff;
    flex: 1;
}

#hygiene-app-wrapper .task-name-edit,
#hygiene-app-wrapper .employee-name-edit {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    padding: 6px 10px;
    font-size: 0.95rem;
}

#hygiene-app-wrapper .task-name-edit:focus,
#hygiene-app-wrapper .employee-name-edit:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(78, 205, 196, 0.6);
}

#hygiene-app-wrapper .delete-employee-btn,
#hygiene-app-wrapper .delete-task-btn {
    background: #e74c3c;
    border: none;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

#hygiene-app-wrapper .delete-employee-btn:hover,
#hygiene-app-wrapper .delete-task-btn:hover {
    background: #c0392b;
}

/* === INFO SECTION === */
#hygiene-app-wrapper .info-section {
    display: grid;
    gap: 15px;
}

#hygiene-app-wrapper .info-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#hygiene-app-wrapper .info-box p {
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

#hygiene-app-wrapper .info-box p:last-child {
    margin-bottom: 0;
}

#hygiene-app-wrapper .info-box strong {
    color: #4ecdc4;
}

/* === DELETE LOG === */
#hygiene-app-wrapper .delete-log-container {
    max-height: 400px;
    overflow-y: auto;
}

#hygiene-app-wrapper .delete-log-list {
    display: grid;
    gap: 12px;
}

#hygiene-app-wrapper .delete-log-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#hygiene-app-wrapper .delete-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

#hygiene-app-wrapper .delete-log-employee {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.95rem;
}

#hygiene-app-wrapper .delete-log-item small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

#hygiene-app-wrapper .delete-log-tasks {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

#hygiene-app-wrapper .delete-log-task {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

#hygiene-app-wrapper .restore-protocol-btn {
    background: #3498db;
    border: none;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

#hygiene-app-wrapper .restore-protocol-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

/* === MESSAGE === */
#hygiene-app-wrapper .message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 10px;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
}

#hygiene-app-wrapper .message-success {
    background: #27ae60;
    color: #fff;
}

#hygiene-app-wrapper .message-error {
    background: #e74c3c;
    color: #fff;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    #hygiene-app-wrapper header h1 {
        font-size: 1.5rem;
    }

    #hygiene-app-wrapper .employee-buttons {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    #hygiene-app-wrapper .tasks-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }

    #hygiene-app-wrapper main {
        padding: 15px;
    }

    #hygiene-app-wrapper section {
        padding: 15px;
        margin-bottom: 15px;
    }

    #hygiene-app-wrapper .history-item-header {
        flex-direction: column;
    }

    #hygiene-app-wrapper .history-date-time {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    #hygiene-app-wrapper header {
        padding: 20px 15px 15px 15px;
    }

    #hygiene-app-wrapper header h1 {
        font-size: 1.3rem;
    }

    #hygiene-app-wrapper .settings-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    #hygiene-app-wrapper .employee-buttons {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 8px;
    }

    #hygiene-app-wrapper .employee-btn {
        padding: 12px 10px;
        font-size: 0.85rem;
    }

    #hygiene-app-wrapper .tasks-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    #hygiene-app-wrapper .quick-add-section {
        flex-direction: column;
    }

    #hygiene-app-wrapper main {
        padding: 10px;
    }

    #hygiene-app-wrapper section {
        padding: 12px;
        margin-bottom: 12px;
    }

    #hygiene-app-wrapper section h2 {
        font-size: 1.2rem;
    }

    #hygiene-app-wrapper section h3 {
        font-size: 1rem;
    }

    #hygiene-app-wrapper .input-group {
        flex-direction: column;
    }

    #hygiene-app-wrapper .history-list {
        max-height: 400px;
    }

    #hygiene-app-wrapper .delete-log-container {
        max-height: 300px;
    }
}

/* === WICHTIG: ALLE SELEKTOREN NUR INNERHALB DES WRAPPERS === */
/* Diese CSS-Datei ist zu 100% auf #hygiene-app-wrapper gescoped */
/* Keine Auswirkungen auf andere WordPress-Seiten */


/* === SAFARI-SPEZIFISCHE ANPASSUNGEN === */
@supports (-webkit-backdrop-filter: blur(10px)) {
    #hygiene-app-wrapper section,
    #hygiene-app-wrapper header {
        -webkit-backdrop-filter: blur(10px) !important;
    }
}

/* Safari iOS Touch-Optimierung */
#hygiene-app-wrapper button,
#hygiene-app-wrapper .employee-btn,
#hygiene-app-wrapper input {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    touch-action: manipulation !important;
}

/* Safari macOS Scrollbar */
@supports (-webkit-appearance: none) and (stroke-color: transparent) {
    #hygiene-app-wrapper {
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
    }
}

/* Safari Input Autofill Fix */
#hygiene-app-wrapper input:-webkit-autofill,
#hygiene-app-wrapper input:-webkit-autofill:hover,
#hygiene-app-wrapper input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px #0f3460 inset !important;
    -webkit-text-fill-color: #ffffff !important;
}
