/* styles.css - Optimiert für bessere Platzausnutzung */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f7;
    color: #1d1d1f;
    min-height: 100vh;
    line-height: 1.47059;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: -0.022em;
}

/* Layout - Optimiert für maximale Platznutzung */
.container {
    max-width: 1400px; /* Erweitert von 980px */
    margin: 0 auto;
    padding: 0 20px; /* Reduziert von 22px */
}

/* Header - Kompakter */
.header {
    text-align: center;
    padding: 40px 0 30px; /* Reduziert von 66px 0 44px */
}

.header h1 {
    font-size: 48px; /* Reduziert von 56px */
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 4px; /* Reduziert von 6px */
    letter-spacing: -0.005em;
    line-height: 1.07143;
}

.header p {
    font-size: 24px; /* Reduziert von 28px */
    font-weight: 400;
    color: #86868b;
    line-height: 1.14286;
    letter-spacing: .007em;
}

/* Navigation mit Session Controls */
.nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 30px;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.nav-item {
    font-size: 16px;
    font-weight: 400;
    color: #1d1d1f;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.nav-item.active {
    background: #007aff;
    color: white;
}

.nav-item i {
    font-size: 13px;
}

/* Session Controls */
.session-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.session-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(0, 122, 255, 0.1);
    border: 1px solid rgba(0, 122, 255, 0.2);
    border-radius: 8px;
    color: #007aff;
    font-size: 14px;
    font-weight: 500;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    transition: all 0.3s ease;
}

.session-timer.warning {
    background: rgba(255, 149, 0, 0.1);
    border-color: rgba(255, 149, 0, 0.2);
    color: #ff9500;
}

.session-timer.critical {
    background: rgba(255, 59, 48, 0.1);
    border-color: rgba(255, 59, 48, 0.2);
    color: #ff3b30;
    animation: pulse-critical 1s ease-in-out infinite alternate;
}

@keyframes pulse-critical {
    0% { opacity: 0.8; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.02); }
}

.session-timer i {
    font-size: 12px;
}

.logout-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 59, 48, 0.2);
    transform: scale(1.05);
}

.logout-btn:active {
    transform: scale(0.95);
}

/* Session Warning Modal */
.session-warning-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.session-warning-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    padding: 40px 32px 32px;
    width: 90%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.session-warning-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff9500 0%, #ff6b00 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    margin: 0 auto 24px;
    position: relative;
    animation: pulse-warning 2s ease-in-out infinite;
}

.session-warning-icon::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.2) 0%, rgba(255, 107, 0, 0.2) 100%);
    z-index: -1;
}

.session-warning-title {
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 12px;
    line-height: 1.2;
}

.session-warning-message {
    font-size: 17px;
    color: #1d1d1f;
    line-height: 1.47059;
    margin-bottom: 8px;
}

.session-warning-countdown {
    font-size: 15px;
    color: #ff9500;
    margin-bottom: 32px;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-weight: 600;
}

.session-warning-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.session-btn {
    flex: 1;
    max-width: 140px;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.session-btn.extend {
    background: linear-gradient(135deg, #007aff 0%, #0051d5 100%);
    color: white;
}

.session-btn.extend:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.session-btn.logout {
    background: #f2f2f7;
    color: #1d1d1f;
}

.session-btn.logout:hover {
    background: #e5e5ea;
    transform: translateY(-1px);
}

/* Statistics - Kompakter Grid */
.stats-section {
    margin-bottom: 50px; /* Reduziert von 88px */
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Reduziert von 200px */
    gap: 16px; /* Reduziert von 20px */
}

.stat-card {
    background: white;
    border-radius: 16px; /* Reduziert von 18px */
    padding: 20px 18px; /* Reduziert von 30px 24px */
    display: flex;
    align-items: center;
    gap: 16px; /* Reduziert von 20px */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 40px; /* Reduziert von 48px */
    height: 40px;
    border-radius: 10px; /* Reduziert von 12px */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px; /* Reduziert von 20px */
    flex-shrink: 0;
}

.stat-card.critical .stat-icon {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
}

.stat-card.warning .stat-icon {
    background: rgba(255, 149, 0, 0.1);
    color: #ff9500;
}

.stat-card.success .stat-icon {
    background: rgba(48, 209, 88, 0.1);
    color: #30d158;
}

.stat-card.info .stat-icon {
    background: rgba(0, 122, 255, 0.1);
    color: #007aff;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 28px; /* Reduziert von 32px */
    font-weight: 600;
    line-height: 1;
    margin-bottom: 2px; /* Reduziert von 4px */
    letter-spacing: -0.003em;
}

.stat-label {
    font-size: 14px; /* Reduziert von 15px */
    font-weight: 400;
    color: #86868b;
}

.stat-card.critical .stat-number { color: #ff3b30; }
.stat-card.warning .stat-number { color: #ff9500; }
.stat-card.success .stat-number { color: #30d158; }
.stat-card.info .stat-number { color: #007aff; }

/* Section - Kompakter */
.section {
    margin-bottom: 50px; /* Reduziert von 88px */
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 20px; /* Reduziert von 30px */
}

.section-title {
    font-size: 32px; /* Reduziert von 40px */
    font-weight: 600;
    color: #1d1d1f;
    line-height: 1.1;
    letter-spacing: 0em;
    display: flex;
    align-items: center;
    gap: 12px; /* Reduziert von 16px */
}

.section-title i {
    font-size: 28px; /* Reduziert von 36px */
}

.section-subtitle {
    font-size: 18px; /* Reduziert von 21px */
    font-weight: 400;
    color: #86868b;
    margin-top: 2px; /* Reduziert von 4px */
}

/* Buttons - Kompakter */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px; /* Reduziert von 8px */
    padding: 10px 20px; /* Reduziert von 12px 24px */
    border: none;
    border-radius: 980px;
    font-size: 16px; /* Reduziert von 17px */
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 40px; /* Reduziert von 44px */
    line-height: 1.23536;
    letter-spacing: -0.022em;
}

.btn i {
    font-size: 13px; /* Reduziert von 14px */
}

.btn-primary {
    background: #007aff;
    color: white;
}

.btn-primary:hover {
    background: #0051d5;
}

.btn-secondary {
    background: #f2f2f7;
    color: #1d1d1f;
}

.btn-secondary:hover {
    background: #e5e5ea;
}

.btn-outline {
    background: transparent;
    color: #007aff;
    border: 1px solid #007aff;
}

.btn-outline:hover {
    background: #007aff;
    color: white;
}

.btn-small {
    padding: 6px 14px; /* Reduziert von 8px 16px */
    font-size: 14px; /* Reduziert von 15px */
    min-height: 30px; /* Reduziert von 32px */
}

.btn-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Tables - Kompakter */
.table-container {
    background: white;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px; /* Reduziert von 24px */
}

.table-header {
    background: #f2f2f7;
    padding: 12px 16px; /* Reduziert von 16px 20px */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.table-title {
    font-size: 16px; /* Reduziert von 18px */
    font-weight: 600;
    color: #1d1d1f;
    line-height: 1.18182;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px 16px; /* Reduziert von 12px 20px */
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

th {
    background: #f2f2f7;
    font-size: 11px; /* Reduziert von 12px */
    font-weight: 600;
    color: #868b88;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

td {
    font-size: 14px; /* Reduziert von 15px */
    color: #1d1d1f;
    line-height: 1.47059;
}

tr:hover td {
    background: rgba(0, 122, 255, 0.04);
}

tr:last-child td {
    border-bottom: none;
}

.issues-table .col-date {
    width: 12%;
}

/* Grid Layout - Bessere Ausnutzung */
.grid {
    display: grid;
    gap: 16px 16px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Reduziert von 320px */
    align-items: start;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Reduziert von 250px */
    align-items: start;
}

/* Cards - Kompakter */
.card {
    background: white;
    border-radius: 12px;
    padding: 16px; /* Reduziert von 20px */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px; /* Reduziert von 12px */
}

.card-title {
    font-size: 16px; /* Reduziert von 17px */
    font-weight: 600;
    color: #1d1d1f;
    line-height: 1.21053;
}

.card-category {
    font-size: 11px; /* Reduziert von 12px */
    font-weight: 600;
    color: #007aff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.card-content {
    font-size: 15px; /* Reduziert von 17px */
    color: #1d1d1f;
    line-height: 1.47059;
}

.card-actions {
    position: absolute;
    top: 12px; /* Reduziert von 14px */
    right: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.card:hover .card-actions {
    opacity: 1;
}

/* Status Badges - Kompakter */
.status {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px; /* Reduziert von 4px 12px */
    border-radius: 10px; /* Reduziert von 12px */
    font-size: 12px; /* Reduziert von 13px */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.status.open {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
}

.status.retest {
    background: rgba(255, 149, 0, 0.1);
    color: #ff9500;
}

.status.fixed {
    background: rgba(48, 209, 88, 0.1);
    color: #30d158;
}

.status.implemented {
    background: rgba(0, 122, 255, 0.1);
    color: #007aff;
}

.status.resolved {
    background: rgba(52, 199, 89, 0.1);
    color: #34c759;
}

/* Dropdown Menu - Modernes Drei-Punkte-Menü */
.dropdown-container {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #86868b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
}

.dropdown-btn:hover {
    background: #f2f2f7;
    color: #1d1d1f;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: none;
    color: #1d1d1f;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 0;
}

.dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 8px 8px;
}

.dropdown-item:only-child {
    border-radius: 8px;
}

.dropdown-item:hover {
    background: #f2f2f7;
}

.dropdown-item.delete:hover {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
}

.dropdown-item i {
    font-size: 12px;
    width: 14px;
}

.dropdown-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    color: #86868b;
}

/* Card Actions anpassen für Dropdown */
.card-actions {
    position: absolute;
    top: 12px;
    right: 12px;
}

/* Tabellen-Dropdown */
td .dropdown-container {
    display: flex;
    justify-content: flex-end;
}

/* Action Buttons - Veraltete Styles (werden durch Dropdown ersetzt) */
.actions {
    display: flex;
    gap: 6px; /* Reduziert von 8px */
    justify-content: flex-end;
}

.action-btn {
    width: 28px; /* Reduziert von 32px */
    height: 28px;
    border: none;
    border-radius: 6px; /* Reduziert von 8px */
    background: #f2f2f7;
    color: #86868b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px; /* Reduziert von 14px */
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: #e5e5ea;
    color: #1d1d1f;
    transform: scale(1.05);
}

.action-btn.edit:hover {
    background: rgba(255, 149, 0, 0.1);
    color: #ff9500;
}

.action-btn.delete:hover {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
}

.action-btn.move:hover {
    background: rgba(0, 122, 255, 0.1);
    color: #007aff;
}

/* Modals - Kompakter */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    z-index: 1000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    padding: 20px; /* Kleinster gemeinsamer Nenner */
    margin: 16px; /* Nur relevant, falls zusätzlich zur Positionierung Platz nötig ist */
    width: calc(100% - 32px); /* Verträgt sich mit margin */
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal-title {
    font-size: 24px; /* Reduziert von 28px */
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 20px; /* Reduziert von 24px */
    line-height: 1.14286;
}

/* Forms - Kompakter */
.form-group {
    margin-bottom: 18px; /* Reduziert von 24px */
}

.form-label {
    display: block;
    font-size: 16px; /* Reduziert von 17px */
    font-weight: 400;
    color: #1d1d1f;
    margin-bottom: 6px; /* Reduziert von 8px */
    line-height: 1.47059;
}

.form-input {
    width: 100%;
    padding: 10px 14px; /* Reduziert von 12px 16px */
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    background: white;
    color: #1d1d1f;
    font-size: 16px; /* Reduziert von 17px */
    line-height: 1.47059;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.form-textarea {
    min-height: 70px; /* Reduziert von 80px */
    resize: vertical;
    font-family: inherit;
}

.form-actions {
    display: flex;
    gap: 10px; /* Reduziert von 12px */
    justify-content: flex-end;
    margin-top: 24px; /* Reduziert von 32px */
    padding-top: 18px; /* Reduziert von 24px */
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Toast Notifications - Kompakter mit Icons */
.toast {
    position: fixed;
    top: 30px; /* Reduziert von 44px */
    right: 20px; /* Reduziert von 22px */
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 12px 16px; /* Reduziert von 16px 20px */
    color: #1d1d1f;
    font-size: 16px; /* Reduziert von 17px */
    font-weight: 400;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    transform: translateX(400px);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2000;
    max-width: 300px; /* Reduziert von 320px */
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-color: #30d158;
    background: rgba(48, 209, 88, 0.05);
}

.toast.success i {
    color: #30d158;
}

.toast.error {
    border-color: #ff3b30;
    background: rgba(255, 59, 48, 0.05);
}

.toast.error i {
    color: #ff3b30;
}

.toast.warning {
    border-color: #ff9500;
    background: rgba(255, 149, 0, 0.05);
}

.toast.warning i {
    color: #ff9500;
}

.toast.info {
    border-color: #007aff;
    background: rgba(0, 122, 255, 0.05);
}

.toast.info i {
    color: #007aff;
}

.toast i {
    font-size: 14px;
    flex-shrink: 0;
}

/* Loading States - Kompakter */
.loading {
    text-align: center;
    padding: 60px 20px; /* Reduziert von 88px 20px */
    color: #86868b;
    font-size: 16px; /* Reduziert von 17px */
}

.error {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.2);
    color: #ff3b30;
    padding: 16px; /* Reduziert von 20px */
    border-radius: 12px;
    text-align: center;
    margin: 16px 0; /* Reduziert von 20px 0 */
    font-size: 16px; /* Reduziert von 17px */
}

/* Links */
.link {
    color: #007aff;
    text-decoration: none;
    font-weight: 400;
}

.link:hover {
    text-decoration: underline;
}

/* Footer - Kompakter */
footer {
    text-align: center;
    margin-top: 60px; /* Reduziert von 88px */
    padding: 30px 20px; /* Reduziert von 44px 22px */
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: #86868b;
    font-size: 16px; /* Reduziert von 17px */
}

footer p {
    margin-top: 3px; /* Reduziert von 4px */
    font-size: 14px; /* Reduziert von 15px */
}

/* Custom Confirm Modal - Neues Design wie Logout */
.confirm-modal {
    max-width: 420px;
    text-align: center;
    padding: 40px 32px 32px;
}

.confirm-header {
    margin-bottom: 32px;
}

.confirm-icon-container {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    margin: 0 auto 24px;
    position: relative;
}

/* Icon Container Styles basierend auf Aktion */
.confirm-icon-container.success {
    background: linear-gradient(135deg, #30d158 0%, #28a745 100%);
}

.confirm-icon-container.success::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.2) 0%, rgba(40, 167, 69, 0.2) 100%);
    z-index: -1;
}

.confirm-icon-container.primary {
    background: linear-gradient(135deg, #007aff 0%, #0051d5 100%);
}

.confirm-icon-container.primary::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.2) 0%, rgba(0, 81, 213, 0.2) 100%);
    z-index: -1;
}

.confirm-icon-container.warning {
    background: linear-gradient(135deg, #ff9500 0%, #ff6b00 100%);
}

.confirm-icon-container.warning::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.2) 0%, rgba(255, 107, 0, 0.2) 100%);
    z-index: -1;
}

.confirm-title {
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 12px;
    line-height: 1.2;
}

.confirm-body {
    margin-bottom: 32px;
}

.confirm-message {
    font-size: 17px;
    color: #1d1d1f;
    line-height: 1.47059;
    margin: 0;
}

.confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-actions .btn {
    flex: 1;
    max-width: 140px;
    padding: 12px 24px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.confirm-actions .btn:hover {
    transform: translateY(-1px);
}

.confirm-actions .btn-primary:hover {
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.confirm-actions .btn-success:hover {
    box-shadow: 0 4px 12px rgba(48, 209, 88, 0.3);
}

.confirm-actions .btn-warning:hover {
    box-shadow: 0 4px 12px rgba(255, 149, 0, 0.3);
}

/* Hold-to-Delete Button - Angepasst für neues Design */
.hold-to-delete {
    background: linear-gradient(135deg, #ff3b30 0%, #d70015 100%);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
    --progress: 0%;
}

.hold-to-delete::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--progress);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
    transition: width 0.016s linear;
    z-index: 1;
}

.hold-to-delete span,
.hold-to-delete i {
    position: relative;
    z-index: 2;
}

.hold-to-delete.deleting {
    cursor: progress;
    transform: scale(0.98);
}

.hold-to-delete.completed {
    background: linear-gradient(135deg, #30d158 0%, #28a745 100%) !important;
    cursor: default;
    transform: scale(1);
}

.hold-to-delete.completed::before {
    width: 100% !important;
    background: rgba(255, 255, 255, 0.2) !important;
}

.hold-to-delete:not(.deleting):not(.completed):hover {
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
}

/* Button Styles für neue Designs */
.btn-success {
    background: linear-gradient(135deg, #30d158 0%, #28a745 100%);
    color: white;
    border: none;
}

.btn-warning {
    background: linear-gradient(135deg, #ff9500 0%, #ff6b00 100%);
    color: white;
    border: none;
}

.btn-secondary {
    background: #f2f2f7;
    color: #1d1d1f;
    border: none;
}

.btn-secondary:hover {
    background: #e5e5ea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Animations */
@keyframes slideIn {
    0% { 
        opacity: 0; 
        transform: translate(-50%, -60%) scale(0.9);
    }
    100% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .confirm-modal,
    .delete-modal {
        margin: 20px;
        width: calc(100% - 40px);
        padding: 32px 24px 24px;
    }

    .confirm-icon-container,
    .delete-icon-container {
        width: 60px;
        height: 60px;
        font-size: 28px;
        margin-bottom: 20px;
    }

    .confirm-icon-container::after,
    .delete-icon-container::after {
        top: -3px;
        left: -3px;
        right: -3px;
        bottom: -3px;
        border-radius: 18px;
    }

    .confirm-title,
    .delete-title {
        font-size: 20px;
    }

    .confirm-actions,
    .delete-actions {
        flex-direction: column;
        gap: 8px;
    }

    .confirm-actions .btn,
    .delete-actions .btn {
        max-width: none;
    }
}

/* Responsive Design - Optimiert */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-title i {
        font-size: 24px;
    }
    
    .grid-2 {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header {
        padding: 30px 0 20px;
    }
    
    .header h1 {
        font-size: 36px;
    }
    
    .header p {
        font-size: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .section {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .nav-content {
        gap: 15px;
        flex-wrap: wrap;
        padding: 8px 0;
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .nav-item {
        font-size: 14px;
        padding: 5px 10px;
    }
    
    /* Session Controls für Mobile */
    .session-controls {
        gap: 8px;
        margin-left: auto;
        order: 2;
    }
    
    .session-timer {
        padding: 4px 8px;
        font-size: 12px;
        border-radius: 6px;
    }
    
    .session-timer span {
        font-size: 11px;
    }
    
    .logout-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    th, td {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .table-title {
        font-size: 15px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .btn-group {
        justify-content: stretch;
    }
    
    .btn-group .btn {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .toast {
        right: 16px;
        left: 16px;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .toast.show {
        transform: translateY(0);
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .nav-content {
        gap: 10px;
    }
    
    .session-controls {
        width: 100%;
        justify-content: flex-end;
        margin-left: 0;
        order: 3;
    }
}

/* Session Alert Modal */
        .session-alert-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(20px);
            z-index: 2000;
            animation: fadeIn 0.3s ease;
        }

        .session-alert-content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: white;
            border-radius: 20px;
            padding: 40px 32px 32px;
            width: 90%;
            max-width: 420px;
            text-align: center;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
            animation: slideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        .session-alert-icon {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, #ff9500 0%, #ff6b00 100%);
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 36px;
            color: white;
            margin: 0 auto 24px;
            position: relative;
        }

        .session-alert-icon.critical {
            background: linear-gradient(135deg, #ff3b30 0%, #d70015 100%);
            animation: pulse 1s ease-in-out infinite;
        }

        .session-alert-icon::after {
            content: '';
            position: absolute;
            top: -4px;
            left: -4px;
            right: -4px;
            bottom: -4px;
            border-radius: 24px;
            background: linear-gradient(135deg, rgba(255, 149, 0, 0.2) 0%, rgba(255, 107, 0, 0.2) 100%);
            z-index: -1;
        }

        .session-alert-icon.critical::after {
            background: linear-gradient(135deg, rgba(255, 59, 48, 0.2) 0%, rgba(215, 0, 21, 0.2) 100%);
        }

        .session-alert-title {
            font-size: 24px;
            font-weight: 600;
            color: #1d1d1f;
            margin-bottom: 12px;
            line-height: 1.2;
        }

        .session-alert-message {
            font-size: 17px;
            color: #1d1d1f;
            line-height: 1.47059;
            margin-bottom: 8px;
        }

        .session-alert-countdown {
            font-size: 15px;
            color: #86868b;
            margin-bottom: 32px;
            font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
        }

        .session-alert-countdown.critical {
            color: #ff3b30;
            font-weight: 600;
            animation: blink 1s ease-in-out infinite;
        }

        .session-alert-actions {
            display: flex;
            gap: 12px;
            justify-content: center;
        }

        .session-alert-btn {
            flex: 1;
            max-width: 140px;
            padding: 12px 24px;
            border: none;
            border-radius: 12px;
            font-size: 17px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .session-alert-btn.primary {
            background: linear-gradient(135deg, #007aff 0%, #0051d5 100%);
            color: white;
        }

        .session-alert-btn.primary:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
        }

        .session-alert-btn.secondary {
            background: #f2f2f7;
            color: #1d1d1f;
        }

        .session-alert-btn.secondary:hover {
            background: #e5e5ea;
            transform: translateY(-1px);
        }

        /* Logout Confirmation Modal */
        .logout-confirm-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(20px);
            z-index: 2000;
            animation: fadeIn 0.3s ease;
        }

        .logout-confirm-content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: white;
            border-radius: 20px;
            padding: 40px 32px 32px;
            width: 90%;
            max-width: 420px;
            text-align: center;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
            animation: slideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        .logout-confirm-icon {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, #007aff 0%, #0051d5 100%);
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 36px;
            color: white;
            margin: 0 auto 24px;
            position: relative;
        }

        .logout-confirm-icon::after {
            content: '';
            position: absolute;
            top: -4px;
            left: -4px;
            right: -4px;
            bottom: -4px;
            border-radius: 24px;
            background: linear-gradient(135deg, rgba(0, 122, 255, 0.2) 0%, rgba(0, 81, 213, 0.2) 100%);
            z-index: -1;
        }

        .logout-confirm-title {
            font-size: 24px;
            font-weight: 600;
            color: #1d1d1f;
            margin-bottom: 12px;
            line-height: 1.2;
        }

        .logout-confirm-message {
            font-size: 17px;
            color: #1d1d1f;
            line-height: 1.47059;
            margin-bottom: 32px;
        }

        .logout-confirm-actions {
            display: flex;
            gap: 12px;
            justify-content: center;
        }

        .logout-confirm-btn {
            flex: 1;
            max-width: 140px;
            padding: 12px 24px;
            border: none;
            border-radius: 12px;
            font-size: 17px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .logout-confirm-btn.danger {
            background: linear-gradient(135deg, #ff3b30 0%, #d70015 100%);
            color: white;
        }

        .logout-confirm-btn.danger:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
        }

        .logout-confirm-btn.cancel {
            background: #f2f2f7;
            color: #1d1d1f;
        }

        .logout-confirm-btn.cancel:hover {
            background: #e5e5ea;
            transform: translateY(-1px);
        }

        /* Animations */
        @keyframes fadeIn {
            0% { opacity: 0; }
            100% { opacity: 1; }
        }

        @keyframes slideIn {
            0% { 
                opacity: 0; 
                transform: translate(-50%, -60%) scale(0.9);
            }
            100% { 
                opacity: 1; 
                transform: translate(-50%, -50%) scale(1);
            }
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }

        @keyframes blink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        /* Demo Buttons */
        .demo-section {
            background: white;
            border-radius: 12px;
            padding: 24px;
            margin-bottom: 20px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        }

        .demo-btn {
            background: #007aff;
            color: white;
            border: none;
            border-radius: 8px;
            padding: 12px 20px;
            margin: 8px;
            cursor: pointer;
            font-size: 16px;
            transition: all 0.2s ease;
        }

        .demo-btn:hover {
            background: #0051d5;
            transform: translateY(-1px);
        }

        /* Mobile Responsive */
        @media (max-width: 480px) {
            .session-alert-content,
            .logout-confirm-content {
                margin: 20px;
                width: calc(100% - 40px);
                padding: 32px 24px 24px;
            }

            .session-alert-icon,
            .logout-confirm-icon {
                width: 60px;
                height: 60px;
                font-size: 28px;
                margin-bottom: 20px;
            }

            .session-alert-title,
            .logout-confirm-title {
                font-size: 20px;
            }

            .session-alert-actions,
            .logout-confirm-actions {
                flex-direction: column;
                gap: 8px;
            }

            .session-alert-btn,
            .logout-confirm-btn {
                max-width: none;
            }
        }

        /* Delete Modal - Komplett überarbeitet */
.delete-modal {
    max-width: 420px;
    text-align: center;
    padding: 40px 32px 32px !important; /* Wichtig: Überschreibt das alte Padding */
}

.delete-header {
    margin-bottom: 32px;
}

.delete-icon-container {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff3b30 0%, #d70015 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    margin: 0 auto 24px;
    position: relative;
}

.delete-icon-container::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.2) 0%, rgba(215, 0, 21, 0.2) 100%);
    z-index: -1;
}

.delete-title {
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 12px;
    line-height: 1.2;
}

.delete-body {
    margin-bottom: 32px;
}

.delete-message {
    font-size: 17px;
    color: #1d1d1f;
    line-height: 1.47059;
    margin: 0;
}

.delete-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.delete-actions .btn {
    flex: 1;
    max-width: 140px;
    padding: 12px 24px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.delete-actions .btn:hover {
    transform: translateY(-1px);
}

.delete-actions .btn-secondary {
    background: #f2f2f7;
    color: #1d1d1f;
    border: none;
}

.delete-actions .btn-secondary:hover {
    background: #e5e5ea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Hold-to-Delete Button - Komplett überarbeitet */
.hold-to-delete {
    background: linear-gradient(135deg, #ff3b30 0%, #d70015 100%) !important;
    color: white !important;
    border: none !important;
    position: relative;
    overflow: hidden;
    --progress: 0%;
}

.hold-to-delete::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--progress);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
    transition: width 0.016s linear;
    z-index: 1;
}

.hold-to-delete span,
.hold-to-delete i {
    position: relative;
    z-index: 2;
}

.hold-to-delete.deleting {
    cursor: progress;
    transform: scale(0.98);
}

.hold-to-delete.completed {
    background: linear-gradient(135deg, #30d158 0%, #28a745 100%) !important;
    cursor: default;
    transform: scale(1);
}

.hold-to-delete.completed::before {
    width: 100% !important;
    background: rgba(255, 255, 255, 0.2) !important;
}

.hold-to-delete:not(.deleting):not(.completed):hover {
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
}

.hold-to-delete:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Überschreibe alte Modal-Titel falls vorhanden */
.modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 20px;
    line-height: 1.14286;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Mobile Responsive für Delete Modal */
@media (max-width: 480px) {
    .delete-modal {
        margin: 20px;
        width: calc(100% - 40px);
        padding: 32px 24px 24px !important;
    }

    .delete-icon-container {
        width: 60px;
        height: 60px;
        font-size: 28px;
        margin-bottom: 20px;
    }

    .delete-icon-container::after {
        top: -3px;
        left: -3px;
        right: -3px;
        bottom: -3px;
        border-radius: 18px;
    }

    .delete-title {
        font-size: 20px;
    }

    .delete-actions {
        flex-direction: column;
        gap: 8px;
    }

    .delete-actions .btn {
        max-width: none;
    }
}

