body { 
    font-family: Arial, sans-serif;
    background-color: #f7f7f7;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    margin: 0;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
}

.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* Kartenstil */
.card-container {
    width: 300px;
    height: 400px;
    position: relative;
    perspective: 1000px;
    margin-bottom: 20px;
}

.card {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #005e3f, #007d32);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    font-weight: 600;
    color: white;
    transition: transform 0.8s ease-in-out;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    word-wrap: break-word;
    backface-visibility: hidden;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
    transform-style: preserve-3d;
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.card:hover:not(.animate-out) {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.card:hover:not(.animate-out)::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.card:active:not(.animate-out) {
    transform: translateY(-2px) scale(0.98);
}

.animate-out {
    transform: rotateY(180deg) !important;
}

/* Aktive Mitarbeiterliste */
#name-list {
    margin-top: 20px;
    width: 300px;
    background: linear-gradient(135deg, #f7f7f7, #e8f5e8);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(0, 94, 63, 0.2);
}

#name-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#name-list li {
    background-color: #ddd;
    margin: 8px 0;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: grab;
    border: 2px solid transparent;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#name-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
}

/* Special styling for current/first item (who's on the card) */
#name-list li:first-child {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #6c757d;
    box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.2);
    position: relative;
}

#name-list li:first-child::after {
    content: '🎯';
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.2); }
    100% { transform: translateY(-50%) scale(1); }
}

#name-list li:active {
    transform: translateY(0);
    cursor: grabbing;
}

#name-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

#name-list li:hover::before {
    left: 100%;
}

/* Moderne X-Buttons */
#name-list li button {
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 50px;
    font-weight: bold;
    font-size: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
    min-width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#name-list li button:hover {
    background: linear-gradient(135deg, #ff3742, #ff2f3a);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
}

#name-list li button:active {
    transform: scale(0.95);
}

/* Collapsible Button */
.collapsible {
    background: linear-gradient(135deg, #005e3f, #007d32);
    color: white;
    cursor: pointer;
    padding: 18px 24px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 94, 63, 0.3);
    position: relative;
    overflow: hidden;
}

.collapsible::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.collapsible:hover {
    background: linear-gradient(135deg, #007d32, #009639);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 94, 63, 0.4);
}

.collapsible:hover::before {
    left: 100%;
}

.collapsible:active {
    transform: translateY(0);
}

.content {
    padding: 18px;
    display: none;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    width: 100%;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-height: 60vh;
    overflow-y: auto;
}

.content button {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border: none;
    color: white;
    padding: 10px 16px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 8px;
    min-width: calc(25% - 8px);
    max-width: calc(50% - 8px);
    box-sizing: border-box;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
    word-wrap: break-word;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.content button:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.4);
}

.content button:active {
    transform: translateY(0);
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 15px;
    border-radius: 5px;
    display: none;
    z-index: 1000;
    animation: fade-in-out 3s ease-in-out;
}

/* Animation for notification */
@keyframes fade-in-out {
    0% {
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Settings Panel */
.settings-panel {
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 250px;
}

.settings-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.settings-btn:hover {
    background-color: #45a049;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.user-name-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: #f0f8ff;
    padding: 10px;
    border-radius: 8px;
    border: 2px solid #4CAF50;
}

.user-name-container label {
    font-size: 14px;
    font-weight: bold;
    color: #005e3f;
}

.user-name-container input {
    padding: 10px;
    border: 2px solid #4CAF50;
    border-radius: 5px;
    font-size: 14px;
    background-color: white;
    font-weight: bold;
}

/* Settings Panel */
.settings-panel {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 10px 0;
    padding: 10px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.settings-btn {
    background-color: #005e3f;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.settings-btn:hover {
    background-color: #007d32;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
}

.checkbox-container input {
    margin-right: 8px;
}

/* Styles für das draggable Fenster */
#add-employee-panel, #color-settings-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    z-index: 1000;
    cursor: move;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

#color-settings-panel {
    width: 400px;
    max-height: 80vh;
    overflow-y: auto;
}

#panel-header, #color-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

#panel-header h2, #color-panel-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
}

#close-panel, #close-color-panel {
    cursor: pointer;
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: white;
    padding: 8px 12px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
}

#close-panel:hover, #close-color-panel:hover {
    background: linear-gradient(135deg, #ff3742, #ff2f3a);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
}

/* Theme sections */
.theme-section {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.theme-section h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #34495e;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.theme-settings {
    margin: 0;
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 15px 0;
}

.theme-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.theme-option:hover {
    border-color: #95a5a6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.theme-option.active {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.1);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.theme-preview {
    width: 60px;
    height: 40px;
    border-radius: 8px;
    margin-bottom: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.theme-option span {
    font-size: 12px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
}

#reset-theme-btn {
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

#reset-theme-btn:hover {
    background: linear-gradient(135deg, #ff5252, #ff4757);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4);
}

#reset-theme-btn:active {
    transform: translateY(0);
}

#new-employee-name {
    width: 100%;
    padding: 8px;
    margin-top: 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#add-employee-button {
    background-color: #005e3f;
    color: white;
    border: none;
    padding: 10px;
    margin-top: 10px;
    width: 100%;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

#add-employee-button:hover {
    background-color: #007d32;
}

#inactive-employees-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    max-height: 300px;
    min-height: 150px;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    scrollbar-width: thin;
    scrollbar-color: #4CAF50 #f1f1f1;
}

/* Webkit Scrollbar für inaktive Mitarbeiterliste */
#inactive-employees-list::-webkit-scrollbar {
    width: 8px;
}

#inactive-employees-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 8px;
}

#inactive-employees-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-radius: 8px;
    transition: background 0.3s ease;
}

#inactive-employees-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
}

#inactive-employees-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
    margin: 2px 0;
    padding: 8px;
    border-bottom: 1px solid #eee;
}

#inactive-employees-list li:hover {
    background-color: #e8e8e8;
}

#inactive-employees-list li:last-child {
    border-bottom: none;
}

/* Responsive Design für kleinere Bildschirme */
@media (max-width: 768px) {
    .main-container {
        width: 100%;
        padding: 10px;
    }
    
    .card-container {
        width: 280px;
        height: 380px;
    }
    
    #name-list {
        width: 280px;
    }
}

.delete-btn {
    background-color: red;
    color: white;
    border: none;
    padding: 2px 6px;
    border-radius: 3px;
    cursor: pointer;
}

#inactive-employees-list button {
    background-color: red;
    color: white;
    border: none;
    padding: 2px 6px;
    border-radius: 3px;
    cursor: pointer;
}

#list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#list li {
    background: linear-gradient(135deg, rgba(0, 94, 63, 0.08), rgba(0, 125, 50, 0.08));
    margin: 8px 0;
    padding: 12px 15px;
    border-radius: 12px;
    cursor: move;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-left: 4px solid #005e3f;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    color: #2c5234;
    font-weight: 500;
}

#list li:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    background: linear-gradient(135deg, rgba(0, 94, 63, 0.12), rgba(0, 125, 50, 0.12));
}

#list li:active {
    transform: scale(0.98);
}

#list li span {
    flex-grow: 1;
    font-size: 16px;
}

.remove-btn {
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(255, 71, 87, 0.3);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-btn:hover {
    background: linear-gradient(135deg, #ff3742, #ff2f3a);
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(255, 71, 87, 0.4);
}