* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    transition: background 0.3s ease;
}

/* Dark Mode */
body.dark-mode {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

body.dark-mode .container {
    background: rgba(30, 30, 46, 0.95);
    color: #e0e0e0;
}

body.dark-mode header {
    background: linear-gradient(135deg, #2d3561 0%, #1f2544 100%);
}

body.dark-mode .tabs {
    background: linear-gradient(to bottom, #2a2a3e, #1f1f2e);
    border-bottom: 3px solid #3a3a4e;
}

body.dark-mode .tab-btn {
    color: #b0b0b0;
}

body.dark-mode .tab-btn:hover {
    color: #8b9dea;
    background: rgba(102, 126, 234, 0.1);
}

body.dark-mode .tab-btn.active {
    background: #1e1e2e;
    color: #8b9dea;
}

body.dark-mode .tab-content {
    background: #1e1e2e;
}

body.dark-mode .tab-header {
    background: linear-gradient(135deg, #c72e2e 0%, #a82424 100%);
}

body.dark-mode .tab-header-success {
    background: linear-gradient(135deg, #0d8f68 0%, #065945 100%);
}

body.dark-mode .form-group label {
    color: #d0d0d0;
}

body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
    background: #2a2a3e;
    border-color: #3a3a4e;
    color: #e0e0e0;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group select:focus,
body.dark-mode .form-group textarea:focus {
    border-color: #8b9dea;
    box-shadow: 0 0 0 4px rgba(139, 157, 234, 0.2);
}

body.dark-mode .email-config {
    background: linear-gradient(135deg, #1f2937 0%, #1e3a5f 100%);
    border-color: #3b5a7f;
}

body.dark-mode .email-config small {
    color: #93c5fd;
}

body.dark-mode .eintrag-card {
    background: linear-gradient(135deg, #2a2a3e 0%, #252538 100%);
    border-color: #3a3a4e;
}

body.dark-mode .eintrag-card:hover {
    border-color: #8b9dea;
    box-shadow: 0 8px 25px rgba(139, 157, 234, 0.2);
}

body.dark-mode .eintrag-card h3 {
    color: #8b9dea;
}

body.dark-mode .eintrag-info p {
    background: #1e1e2e;
    color: #b0b0b0;
}

body.dark-mode .eintrag-info strong {
    color: #d0d0d0;
}

body.dark-mode .empty-message {
    background: linear-gradient(135deg, #2a2a3e 0%, #252538 100%);
    border-color: #3a3a4e;
    color: #808080;
}

body.dark-mode .filter-btn {
    background: #2a2a3e;
    border-color: #3a3a4e;
    color: #b0b0b0;
}

body.dark-mode .filter-btn:hover {
    border-color: #8b9dea;
    color: #8b9dea;
}

body.dark-mode .filter-btn.active {
    background: linear-gradient(135deg, #8b9dea 0%, #9b7bc2 100%);
    color: white;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(255,255,255,0.08) 0%, transparent 60%);
    animation: pulse 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

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

.container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-radius: 28px;
    box-shadow: 0 30px 90px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.1);
    overflow: hidden;
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 50px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* User Info & Logout */
.user-info {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

#currentUserName {
    background: rgba(255, 255, 255, 0.25);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    letter-spacing: 0.3px;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    letter-spacing: 0.3px;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

body.dark-mode .user-info #currentUserName,
body.dark-mode .logout-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .user-info {
        position: static;
        justify-content: center;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }
    
    .dark-mode-toggle {
        position: absolute;
        top: 15px;
        left: 15px;
        padding: 8px 14px;
        font-size: 18px;
    }
    
    header {
        padding: 80px 20px 30px;
    }
    
    header h1 {
        font-size: 28px;
        margin-top: 0;
    }
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 50px;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 22px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.dark-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.08) rotate(15deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.dark-mode-toggle:active {
    transform: scale(0.95) rotate(0deg);
}

.dark-mode-toggle .icon-dark {
    display: none;
}

body.dark-mode .dark-mode-toggle {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .dark-mode-toggle .icon-light {
    display: none;
}

body.dark-mode .dark-mode-toggle .icon-dark {
    display: inline;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15) 5%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255,255,255,0.1) 10%, transparent 60%);
    animation: rotate 25s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

header h1 {
    font-size: 36px;
    margin-bottom: 12px;
    margin-top: 20px;
    font-weight: 800;
    position: relative;
    z-index: 1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

header h1::before {
    content: '📦';
    font-size: 42px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

header p {
    opacity: 0.95;
    font-size: 16px;
    position: relative;
    z-index: 1;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Tabs */
.tabs {
    display: flex;
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
    border-bottom: 3px solid #dee2e6;
    position: relative;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.tab-btn {
    flex: 1;
    padding: 20px 18px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s;
    color: #6c757d;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.tab-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.tab-btn:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.tab-btn.active {
    background: white;
    color: #667eea;
    box-shadow: 0 -2px 8px rgba(102, 126, 234, 0.1);
}

.tab-btn.active::before {
    width: 80%;
}

/* Badge Counter */
.badge-count {
    display: inline-block;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 11px;
    border-radius: 20px;
    margin-left: 10px;
    min-width: 26px;
    text-align: center;
    box-shadow: 0 3px 12px rgba(239, 68, 68, 0.4);
    transition: all 0.3s;
    animation: pulse-badge 2s ease-in-out infinite;
}

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

.badge-count.hidden {
    display: none;
}

.tab-btn.active .badge-count {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 35px 30px;
    animation: fadeIn 0.4s ease-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Sections */
.form-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

body.dark-mode .form-section {
    background: linear-gradient(135deg, #2a2a3e 0%, #252538 100%);
    border-color: #3a3a4e;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 8px;
}

body.dark-mode .section-title {
    color: #8b9dea;
    border-bottom-color: #3a3a4e;
}

/* Form Row for PLZ + Ort */
.form-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 15px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Tab Header */
.tab-header {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
}

.tab-header-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.tab-header h2 {
    font-size: 24px;
    margin-bottom: 5px;
}

.tab-header p {
    font-size: 14px;
    opacity: 0.9;
}

/* Formular */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s;
    background: white;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Foto Buttons */
.foto-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-camera,
.btn-upload {
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-camera {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-camera:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-camera:active {
    transform: translateY(-1px);
}

.btn-upload {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-upload:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* Foto Preview */
#ret_fotoPreview,
#we_fotoPreview {
    margin-top: 20px;
}

#ret_fotoPreview img,
#we_fotoPreview img {
    max-width: 100%;
    max-height: 350px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border: 4px solid white;
}

#ret_fotoPreview button,
#we_fotoPreview button {
    margin-top: 12px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    transition: all 0.3s;
}

#ret_fotoPreview button:hover,
#we_fotoPreview button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* Buttons */
.button-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 35px;
}

.btn {
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.btn-success:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(107, 114, 128, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

/* E-Mail Konfiguration */
.email-config {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #93c5fd;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(147, 197, 253, 0.2);
}

.email-config small {
    display: block;
    margin-top: 8px;
    color: #1e40af;
    font-size: 13px;
    font-weight: 500;
}

/* Actions */
.actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    color: #666;
}

.filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

/* Einträge Liste */
#eintraegeListe {
    display: grid;
    gap: 20px;
}

.eintrag-card {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 25px;
    position: relative;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.eintrag-card:hover {
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    transform: translateY(-3px);
}

/* Card Header */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-type-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.retoure-badge {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.wareneingang-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.eintrag-card h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.eintrag-info {
    display: grid;
    gap: 10px;
    margin-bottom: 15px;
}

.eintrag-info p {
    font-size: 14px;
    color: #666;
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
}

.eintrag-info strong {
    color: #333;
}

.eintrag-card img {
    max-width: 100%;
    max-height: 250px;
    border-radius: 12px;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 3px solid white;
}

/* Foto-Section in Retoure-Card */
.foto-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
}

body.dark-mode .foto-section {
    border-top-color: #3a3a4e;
}

.foto-section h4 {
    color: #667eea;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 700;
}

body.dark-mode .foto-section h4 {
    color: #8b9dea;
}

.foto-section img.retoure-foto {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border: 4px solid white;
    margin-bottom: 15px;
}

body.dark-mode .foto-section img.retoure-foto {
    border-color: #2a2a3e;
}

/* Download-Section */
.download-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

body.dark-mode .download-section {
    border-top-color: #3a3a4e;
}

.download-section .btn {
    flex: 1;
    min-width: 200px;
}

.eintrag-delete {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.eintrag-delete:hover {
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.badge-danger {
    background: #ffe8e8;
    color: #d32f2f;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-info {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-secondary {
    background: #f5f5f5;
    color: #666;
}

.empty-message {
    text-align: center;
    color: #999;
    padding: 60px 20px;
    font-size: 16px;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 16px;
    border: 2px dashed #d1d5db;
}

/* Benutzerliste Styles */
.user-card {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.user-card:hover {
    border-color: #8b5cf6;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
}

body.dark-mode .user-card {
    background: linear-gradient(135deg, #2a2a3e 0%, #252538 100%);
    border-color: #3a3a4e;
}

.user-card-info h4 {
    color: #667eea;
    font-size: 18px;
    margin-bottom: 5px;
}

body.dark-mode .user-card-info h4 {
    color: #8b9dea;
}

.user-card-info p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

body.dark-mode .user-card-info p {
    color: #b0b0b0;
}

.user-card-actions {
    display: flex;
    gap: 10px;
}

.btn-delete-user {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn-delete-user:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.user-role-badge {
    display: inline-block;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
}

.user-role-badge.admin {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Erfolgs-Nachricht */
.success-message {
    position: fixed;
    top: 30px;
    right: 30px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    display: none;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    z-index: 1000;
    animation: slideInRight 0.4s ease, fadeOut 0.4s ease 2.6s;
}

.success-message.show {
    display: flex;
}

.success-message span {
    font-size: 24px;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(400px);
    }
}

/* E-Mail-Empfänger-Verwaltung */
.email-input-group {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: start;
}

.email-input-group input {
    width: 100%;
}

.email-input-group .btn {
    white-space: nowrap;
    padding: 14px 28px;
    font-size: 15px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.email-input-group .btn:hover {
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.5);
    transform: translateY(-3px) scale(1.02);
}

.empfaenger-liste {
    margin-top: 25px;
    display: grid;
    gap: 12px;
}

.empfaenger-item {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #86efac;
    border-radius: 14px;
    padding: 16px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(134, 239, 172, 0.25);
    animation: slideInLeft 0.4s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.empfaenger-item:hover {
    border-color: #22c55e;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
    transform: translateX(5px) translateY(-2px);
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
}

body.dark-mode .empfaenger-item {
    background: linear-gradient(135deg, #1e3a2e 0%, #153525 100%);
    border-color: #2d5f4a;
}

.empfaenger-email {
    font-size: 15px;
    font-weight: 600;
    color: #166534;
    display: flex;
    align-items: center;
    gap: 10px;
}

body.dark-mode .empfaenger-email {
    color: #86efac;
}

.empfaenger-email::before {
    content: '📧';
    font-size: 18px;
}

.btn-remove-email {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-remove-email:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-remove-email:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .email-input-group {
        grid-template-columns: 1fr;
    }
    
    .empfaenger-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .btn-remove-email {
        width: 100%;
        justify-content: center;
    }
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        border-radius: 20px;
    }

    header {
        padding: 30px 20px;
    }

    header h1 {
        font-size: 26px;
    }

    .tab-content {
        padding: 25px 20px;
    }

    .button-group,
    .actions,
    .foto-buttons {
        grid-template-columns: 1fr;
    }

    .success-message {
        top: 20px;
        right: 20px;
        left: 20px;
    }

    .tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        font-size: 14px;
        padding: 15px 10px;
    }
    
    .download-section {
        flex-direction: column;
    }
    
    .download-section .btn {
        width: 100%;
        min-width: auto;
    }
}
