/* Kategorien Management*/
.categories-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

.page-title {
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

/* Kategorien-Liste */
.categories-list {
    max-width: 600px;
    margin: 0 auto;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.2s;
}

.category-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.category-name {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
}

.category-color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
}

.category-count {
    color: #999;
    font-size: 14px;
}

.category-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    padding: 5px;
    transition: transform 0.2s;
}

.btn-icon:hover {
    transform: scale(1.2);
}

.btn-add-category {
    width: 100%;
    padding: 15px;
    background: #f8f9fa;
    border: 2px dashed #667eea;
    border-radius: 8px;
    color: #667eea;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.2s;
}

.btn-add-category:hover {
    background: #667eea;
    color: white;
    border-style: solid;
}

/* Edit Panel (rechts) */
.edit-panel {
    position: fixed;
    right: 0;
    top: 0;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 12px rgba(0,0,0,0.1);
    padding: 30px;
    z-index: 100;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.edit-panel h2 {
    margin: 0 0 30px 0;
    font-size: 20px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
}

.btn-save {
    padding: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-save:hover {
    background: #5568d3;
}

.btn-cancel {
    padding: 12px;
    background: white;
    color: #333;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel:hover {
    border-color: #999;
}

/* Delete Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

.modal-box {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    text-align: center;
}

.modal-box p {
    margin: 0 0 25px 0;
    font-size: 16px;
    color: #333;
}

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

.btn-delete-confirm {
    padding: 12px 30px;
    background: #f56565;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-delete-confirm:hover {
    background: #e53e3e;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 20px 0;
}

.btn-primary {
    padding: 12px 24px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary:hover {
    background: #5568d3;
}

/* Category View Header */
.category-header {
    margin-bottom: 30px;
}

.category-header h1 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0;
}

.back-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}

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

